|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-08 11:44 UTC] hholzgra@php.net
[2001-05-10 08:58 UTC] zeev@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 06:00:01 2025 UTC |
Here is a simple code <? header("content-type: text/plain"); $num = -5; echo "$num\n"; $num++; echo "$num\n"; $num--; echo "$num\n"; echo "----------\n"; $num = "-5"; echo "$num\n"; $num++; echo "$num\n"; $num--; echo "$num\n"; ?> And here results -5 -4 -5 ---------- -5 -6 <-- ????????????????? -7 It looks like "++" operator do not work properly on variables enclosed in double-quotes. Other operators (ie $num = $num +1) woks properly.