note 19242 added to ref.strings

From: Date: Wed, 20 Feb 2002 18:22:46 +0000
Subject: note 19242 added to ref.strings
Groups: php.notes 
Request: Send a blank email to php-notes+get-26858@lists.php.net to get a copy of this message
I found a nice replacement vor the "swap" command, which used to swap two variables... it even works with more than one element and I used it to change the bgcolor of a <table> each row (makes reading more comfortable) first you define $color: $color= array('#0066CC', '#0099CC'); this piece of code just gives out another color, each time you call it $tmp = $color[0]; $col = array_shift ($color); $color[] = $tmp; -- http://www.php.net/manual/en/ref.strings.php http://master.php.net/manage/user-notes.php?action=edit+19242 http://master.php.net/manage/user-notes.php?action=delete+19242 http://master.php.net/manage/user-notes.php?action=reject+19242

« previous php.notes (#26858) next »