PHP:Convert a String to a Number
Revision as of 18:28, 4 January 2010 by Andr3w
Convert to Number
The language will automatically convert the string to an integer as required. You can use the function intval
The value "1234" is a string, you need to treat it as a number - to add 1, giving 1235.