View Full Version : Converting Strings to Numbers

06-12-2005, 11:17 PM
What commands would i have to do to change a string to a number format? Thanks to anyone who helps me

Kid Charming
06-12-2005, 11:47 PM
You can either run it through intval() or settype(), or just cast it as you assign it to a variable:

$var = (int)yourvalue;

06-13-2005, 02:38 AM
Thank you