note 10844 deleted from language.expressions by tularis
| From: | tularis@php.net | Date: | Tue, 12 Oct 2004 14:03:30 +0000 |
| Subject: | note 10844 deleted from language.expressions by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78416@lists.php.net to get a copy of this message | ||
Note Submitter: mircho at _NO_SPAM_abv dot bg
----
try this
$a = "-1";
$a++;
echo $a;
this prints -2 as a result
to be sure you get what you wanted to get just do this
$a = "-2"
$b = (integer)($a)
and now $b will behave
somebody mentioning strict typing?