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 ?> Link to comment https://forums.phpfreaks.com/topic/163603-settype-not-working/ 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. Link to comment https://forums.phpfreaks.com/topic/163603-settype-not-working/#findComment-863285 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 Link to comment https://forums.phpfreaks.com/topic/163603-settype-not-working/#findComment-863286 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.