Wallpapers Forums Login

How To Check If A Variable String Is A Number In My Code

hi, if you want to know how you can determine if a string numeric or no, you can use the is_numeric() function
for example:
<?php
$string=14;
if(is_numeric($string)) echo 'is a number;
else echo 'is not a number';
?>



hope that helps

Related Content

Information

Share

wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5