Mr_J Posted September 22, 2008 Share Posted September 22, 2008 Still learning... <?php $number = "6"; $number++; echo "$number has type " . gettype($number); ?> result: 7 has type integer WHAT MUST THE gettype($number) SHOW OR DO? Quote Link to comment https://forums.phpfreaks.com/topic/125276-solved-numeric-data-types-gettype/ Share on other sites More sharing options...
JonnoTheDev Posted September 22, 2008 Share Posted September 22, 2008 gettype() returns the type of the variable as a string Quote Link to comment https://forums.phpfreaks.com/topic/125276-solved-numeric-data-types-gettype/#findComment-647607 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.