split.php : split « String « PHP





split.php

 
<?php
   $text = "this is\tsome text that\nwe might like to parse.";
   print_r(split("[\n\t]",$text));
?>
  
  

Related examples in the same category

1.Generating date-based drop-down menu options
2.split() function divides a string into various elements.
3.Use split() to limit a parameter to restrict division of $ip