How To Check If A Variable String Is A Number In My Code
Posted On Sat May 19, 2012 By sales In PHP Forums And Topics Discussions About Hyper Text Programming Language Forums
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:
hope that helps
for example:
<?php
$string=14;
if(is_numeric($string)) echo 'is a number;
else echo 'is not a number';
?>
$string=14;
if(is_numeric($string)) echo 'is a number;
else echo 'is not a number';
?>
hope that helps
Related Content
Information
Forums »
PHP Forums And Topics Discussions About Hyper Text Programming Language »
How To Check If A Variable String Is A Number In My Code
PHP Forums And Topics Discussions About Hyper Text Programming Language »
How To Check If A Variable String Is A Number In My Code
Title: How To Check If A Variable String Is A Number In My Code
Description: this will show you a function you can use to determine and find out if a variable string you have is a numberic
Tags: computer ,programming.code
Info: This Post Has Been Viewed 0 Times Since
Date: Sat May 19, 2012
Author sales Received 0 Replies #1307
Date: Sat May 19, 2012
Author sales Received 0 Replies #1307
Share
URL: 

Embed: 

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE:: 

BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
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
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5