note 24839 added to ref.strings

From: Date: Thu, 29 Aug 2002 19:24:02 +0000
Subject: note 24839 added to ref.strings
Groups: php.notes 
Request: Send a blank email to php-notes+get-35998@lists.php.net to get a copy of this message
// Here is a simpler way to swap two values (for alternating TABLE row colors for instance). // Define your colors in an array: $ar_colors = array ("#0066AA","#003399"); // Now simply display them and then reverse the array like this: echo $ar_colors[0]; $ar_colors = array_reverse($ar_colors); -- http://www.php.net/manual/en/ref.strings.php http://master.php.net/manage/user-notes.php?action=edit+24839 http://master.php.net/manage/user-notes.php?action=delete+24839 http://master.php.net/manage/user-notes.php?action=reject+24839

« previous php.notes (#35998) next »