acidglitter Posted August 12, 2007 Share Posted August 12, 2007 This is what I want to do... $string="2532lajlwaevce23la"; if($string is made up of only numbers){ echo "" } What if statement could do that? Link to comment https://forums.phpfreaks.com/topic/64582-solved-if-statements-help/ Share on other sites More sharing options...
teng84 Posted August 12, 2007 Share Posted August 12, 2007 u can use if (is_numeric($value)){ } for more info http://www.php.net/manual/en/function.is-numeric.php Link to comment https://forums.phpfreaks.com/topic/64582-solved-if-statements-help/#findComment-321959 Share on other sites More sharing options...
acidglitter Posted August 13, 2007 Author Share Posted August 13, 2007 okay. thanks a lot! Link to comment https://forums.phpfreaks.com/topic/64582-solved-if-statements-help/#findComment-322123 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.