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? Quote 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 Quote 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! Quote Link to comment https://forums.phpfreaks.com/topic/64582-solved-if-statements-help/#findComment-322123 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.