Basic question for PHP experts out there.
I’m writing a page where the variable I receive will be somebody’s full name, the two words will be separated by a space. Thus, I know that the second word, after the space will be the last name. I would like to retrieve this last name and hold it in a variable.
For example: $EditorName = "John Doe"
I would like to have the result $LastName = "Doe"
Can I use some variation of the split in the PHP manual.
I would be grateful for your help.
PHP Manual: explode
If you need really last(not second) name you should use