Array question...sorry I'm new to PHP

From: Date: Thu, 08 May 2008 14:47:56 +0000
Subject: Array question...sorry I'm new to PHP
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1695@lists.php.net to get a copy of this message
Hello I'm new to PHP and really enjoy the learning experience and support for the same that I have been able to find. I'm currently working on a web page for my baseball league and have come up to a snag. I have tried to get support from several forums and I'm currently trying their suggestions. I have noticed the abundance of array functions available for a person to use, however, there is one I don't seem to see. For my web page I have created a 2-dimensional array to sort all of the teams (keys) schedule data, wins, losses, ties, etc.etc. The last thing I do is create a win% for each team then insert the values into a column. In the event 2 or more teams have equal winning percentages I have created an additional array to keep tract of each teams head to head results (based on wins only). So finally my question, is there a simple array function to simply swap two key/value pairs in the array. In this example row 3 becomes row 2 and row 2 becomes row 3 (based on a condition/comparison)? Thank-you for your time and patience. Todd Email @work (Todd.Newton@jcc.hrcc.ca) @home (pokefun@quickclic.net) This information is directed in confidence solely to the person named above and may not otherwise be distributed, copied or disclosed. Therefore, this information should be considered strictly confidential. If you have received this email in error, please notify the sender immediately via a return email for further direction. Thank you for your assistance.

« previous php.webmaster (#1695) next »