...

View Full Version : Converting Strings to Numbers



Kura_kai
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;

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum