$name = "John S Smith"; list($fname, $lname) = split(' ', $name,2); echo "First Name: $fname, Last Name: $lname";
Deluje z ali brez srednjega imena.
$name = "John S Smith"; list($fname, $lname) = split(' ', $name,2); echo "First Name: $fname, Last Name: $lname";
Deluje z ali brez srednjega imena.