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? 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 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
Archived
This topic is now archived and is closed to further replies.