[SOLVED] Separating text from numbers in a string
Posted: Tue Dec 20, 2005 10:35 am
Because of the nature of a UPS shipping script installed on my site, the value passed from a selected checkbox field in the script is both text and numeric - ex: UPS Ground=11.44
Is there a way to parse the text away from the number so that I could end up with two fields :
$ship_type="UPS Ground"
$shipping="11.44"
?
Any help much appreciated.
thanks in advance.
mc
Is there a way to parse the text away from the number so that I could end up with two fields :
$ship_type="UPS Ground"
$shipping="11.44"
?
Any help much appreciated.
thanks in advance.
mc