preg_split (/\+{1,}/) : String Split « String « PHP






preg_split (/\+{1,}/)


<?php
   $delimitedText = "+Java+++PHP+++++++++++ASP+++OH";
   $fields = preg_split("/\+{1,}/", $delimitedText);
   foreach($fields as $field) echo $field."<br />";
?>

           
       








Related examples in the same category

1.Splitting a String Based on a Found String