php strin spl code example
Example 1: explode in php
$str = 'one two three four';
$numbers4 = explode(' ',$str);
Example 2: how to split sting in php
<?php
list($user, $pass, $uid, $gid, $extra) =
split(":", $passwd_line, 5);
?>
$str = 'one two three four';
$numbers4 = explode(' ',$str);
<?php
list($user, $pass, $uid, $gid, $extra) =
split(":", $passwd_line, 5);
?>