Jump to content

Split a variable into 2 variables


Dustin013

Recommended Posts

I have a form field post which is sending the variable '$fullname' to a script. What I need to do is split that name into two variables. So if $fullname is "John Smith" I need to create $firstname=John and $lastname=Smith, using the space as the identifier. What the best method to do this?

Link to comment
https://forums.phpfreaks.com/topic/144840-split-a-variable-into-2-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.