note 89807 modified in function.intval by danbrown

From: Date: Tue, 24 Mar 2009 13:12:13 +0000
Subject: note 89807 modified in function.intval by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152380@lists.php.net to get a copy of this message
when converting some optional form values to positive integers and to be on the safe side, you can use this: <?php $q=intval("0".$_REQUEST['q']); ?> --was-- when converting some optional form values to positive integers and to be on the safe side, you can use this: $q=intval("0".$_REQUEST['q']); http://php.net/manual/en/function.intval.php

« previous php.notes (#152380) next »