Suppose We have a user named Paul Steve Panakkal (my cousin). To separate the first name, middle name and last name you can do the following in PHP :
$name="Paul Steve Panakkal";
The above code would print out :
The above code will also print out :
If you have any suggestions/feedback/problems just echo it out in the comments below.