From 4520ea8d7f8b5b72fc7c77a0b283a20ecf8964cb Mon Sep 17 00:00:00 2001 From: Karoly Negyesi Date: Fri, 19 Jul 2013 06:58:20 +0000 Subject: [PATCH] note that increment/decrement does not affect arrays, objects and resources git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330975 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/language/operators.xml b/language/operators.xml index de6a40a8e1..d091b1144b 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1520,7 +1520,8 @@ echo "
$output
"; - The increment/decrement operators do not affect boolean values. + The increment/decrement operators only affect numbers and strings. + Arrays, objects and resources are not affected. Decrementing &null; values has no effect too, but incrementing them results in 1.