Hi,
I have a string “De Beer Piet”. “Piet” is the boys name. “De Beer” is his surname. I need to split the string sothat I can have:
$FName = “Piet” $LName = “De Beer”
What is a easy way to do this.
Please help.
[code=php] $arr = explode(" ", $string); $FName = $arr[2]; $LName = $arr[0]." ".$arr[1]; [/code]
Help @gogelpot spread the word by sharing this article on Twitter...