PHP How Preg_Split() Can Be Used: – String Function

<?php    $s = 'a , bc ,asdf';    var_dump (preg_split ('/[ ,]/', $s));?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.