PHP Split.Php – String Function

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

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.