note 16620 deleted from language.operators.increment by jimw

From: Date: Fri, 07 Dec 2001 21:44:58 +0000
Subject: note 16620 deleted from language.operators.increment by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22040@lists.php.net to get a copy of this message
Unlike in perl, you cannot increment an element of an array. For example: $ip = "192.168.0.10"; $quads = explode(".",$ip); $quads[3]++; $newip = implode(".",$quads); print "newip is $newip"; Will return: 192.168.0.10.1 Just a warning for perl people.

« previous php.notes (#22040) next »