PHP2.ppt
PHP2.ppt
Now the two-dimensional $cars array contains four arrays, and it has two
indices: row and column.
To get access to the elements of the $cars array we must point to the two
indices (row and column):
PHP - Sort Functions For Arrays
• sort() - sort arrays in ascending order
• rsort() - sort arrays in descending order
• asort() - sort associative arrays in ascending
order, according to the value
• ksort() - sort associative arrays in ascending
order, according to the key
• arsort() - sort associative arrays in descending
order, according to the value
• krsort() - sort associative arrays in descending
order, according to the key