Creating a multidimensional array variable from a mysql table
I want to create a variable which is a multidimensional array. I've tried using many combinations of mysql_fetch_array(), mysql_fetch_row(), etc. etc. incorporating them into loops, but have been unsuccessful. I want to create a variable identical to $rushers below from the table that is also listed below. My players table will constantly be growing so $rushers will also have to adjust to the growing table by adding more arrays. Any help would be very much appreciated. If you have any questions please let me know. Thank you.
$rushers = array( array(1, 27, "Ryan Weldin", 5734),
array(2, 20, "Joe Caquelin", 2345),
array(3, 2, "Mark Weisburg", 123));
mysql> select * from players;
+----------+--------+---------------+-------+
| playerid | number | name | yards |
+----------+--------+---------------+-------+
| 1 | 27 | Ryan Weldin | 5734 |
| 2 | 20 | Joe Caquelin | 2345 |
| 3 | 2 | Mark Weisburg | 123 |
+----------+--------+---------------+-------+