Req #67837 [NEW]: Allow cast to (number)

From: Date: Wed, 13 Aug 2014 18:52:23 +0000
Subject: Req #67837 [NEW]: Allow cast to (number)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187104@lists.php.net to get a copy of this message
From: lkmorlan at uwaterloo dot ca Operating system: all PHP version: 5.6.0RC3 Package: Variables related Bug Type: Feature/Change Request Bug description:Allow cast to (number) Description: ------------ It would be useful to have the ability to cast to (number), which would cast to either (int) or (float), as needed. (number) $var; Would be the same as: $var += 0; -- Edit bug report at https://bugs.php.net/bug.php?id=67837&edit=1 --

« previous php.bugs (#187104) next »