note 10116 deleted from language.operators.increment by alindeman

From: Date: Tue, 22 Apr 2003 02:32:41 +0000
Subject: note 10116 deleted from language.operators.increment by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-46919@lists.php.net to get a copy of this message
Regarding incrementing characters, this also works on strings. So, $a = 'z'; ++$a; // $a is now 'aa' ++$a; // $a is now 'ab' $a = 'az'; ++$a; // $a is now 'ba' However, you cannot decrement a string in this way. $a = 'az'; --$a; // $a is still 'az'

« previous php.notes (#46919) next »