prakash Posted June 25, 2009 Share Posted June 25, 2009 hi, I am confused why settype is not working. <?php $test="8745102459"; settype($test, "int"); print $test; // Prints 2147483647 instead of 8745102459 ?> Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted June 25, 2009 Share Posted June 25, 2009 could try something like... <?php $test="8745102459"; $test = (int)$test; print $test; ?> not sure if that works or not. Worth a try. Quote Link to comment Share on other sites More sharing options...
prakash Posted June 25, 2009 Author Share Posted June 25, 2009 could try something like... <?php $test="8745102459"; $test = (int)$test; print $test; ?> not sure if that works or not. Worth a try. nope even that code doesn't works 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.