Mega Code Archive
Categories
/
Php
/
Data Type
Asort() Constants
SORT_REGULAR Compare the items normally (default). SORT_NUMERIC Compare the items as numeric values. SORT_STRING Compare the items as string values.
Sorting Arrays
Sorting Arrays using the
asort()
function
Pet Name
Pet Owner
Pet Weight
Type of Animal
$weight) { echo "
"; echo "
{$petshack['name'][$key]}
{$petshack['owner'][$key]}
"; echo "
{$weight}
{$petshack['animal'][$key]}
"; echo "
"; } ?>