Req #54307 [NEW]: isset && is_numeric
| From: | jball606 at gmail dot com | Date: | Fri, 18 Mar 2011 11:42:01 +0000 |
| Subject: | Req #54307 [NEW]: isset && is_numeric | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-159589@lists.php.net to get a copy of this message | ||
From:
Operating system: *nix & windows
PHP version: 5.3.6
Package: Output Control
Bug Type: Feature/Change Request
Bug description:isset && is_numeric
Description:
------------
I would kill for a way to do isset && check if the value is s specific data
type such as numeric. My code is loaded with if(isset($a) &&
is_numeric($a)). It would be nice to do that in a single function
(isset($a,[is_numeric])).
Thank you taking the time to read my request.
Expected result:
----------------
$var = isset($a,[is_numeric]);
$var = true,false
Actual result:
--------------
$var = isset($a,[is_numeric]);
$var = true,false
--
Edit bug report at http://bugs.php.net/bug.php?id=54307&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54307&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54307&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54307&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=54307&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54307&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=54307&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=54307&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=54307&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=54307&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=54307&r=support
Expected behavior: http://bugs.php.net/fix.php?id=54307&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=54307&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=54307&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=54307&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54307&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54307&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=54307&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=54307&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=54307&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=54307&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=54307&r=mysqlcfg