Hello! 🙂
In a variable(from a drop down menu), I do get strings like this:
109#2u Server other $109
How can I please put the value( always digits) before the # in a variable, and the things after(always text) in another variable please?
Thanks,
$mytext = "109#2u Server other $109"; $myarray = explode("#", $mytext); $numberpart = $myarray[0]; $textpart = $myarray[1];
Just be careful about putting other "#"'s.
Hope this helps.
Works fine.
Thanks racing_fire 🙂