This is post to my php script (exactly as it looks):
$Name_First => John $Name_Last => Smith
How to take out only John Smith??
Thanks
Try this example :
$var = "\$Name_First => John"; $whatyouwant = substr($var, strpos($var, "=>")+2, strlen($var));
Yes it works, but I donn't know if the name will be John. Name will change all the time.
Any solution? Thanks
Wiens script works. It doesnt matter if there is John, Jane or something else. It subtracts the string from => to the end and returns the string.
Perhaps I did not explain my problem well. How to write $var = "\$Name_First => John"; when I donn't know if name is John. How to write $var = "\$Name_First => (something that will read name here)";
how do you get what is POST to you script ? ? so you see 😉 $var is what you get from a post
How is it post, thats what I have receive.
"We send the http post in key value pairs. Each line would have a key and a value then a new line. ex"
$first_name => John $last_name => Smith
Does anybody understand mening. I'm beginer so pls help.