note 47763 deleted from function.is-numeric by sean
| From: | sean@php.net | Date: | Mon, 29 Nov 2004 04:30:33 +0000 |
| Subject: | note 47763 deleted from function.is-numeric by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-81133@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at paxgamers dot com
----
This is good for when building a CMS and the frontend if you want to make sure the id is a number -
if (is_numeric($_GET['id'])) {
echo "content";
} else {
echo "Sorry, but this is not a valid id!";
}
----
Reason: useless example