erasam Posted April 13, 2007 Share Posted April 13, 2007 Can anyone tell me how to convert a string of words to an integer? eg. "12321" to 12321 thx a lot Quote Link to comment Share on other sites More sharing options...
btherl Posted April 13, 2007 Share Posted April 13, 2007 The simplest ways are $int = intval($str); $int = (int)$str; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.