Array sorting

From: Date: Sat, 08 Feb 2003 03:11:47 +0000
Subject: Array sorting
Groups: php.general 
Request: Send a blank email to php-general+get-134850@lists.php.net to get a copy of this message
My question is if anyone have any idé on how to sort this array so that the names and ages are sorted after Close Friend, Friend, Wife and last Family... $A[] = array ("Nils", "23", "Friend"); $A[] = array ("Emma", "21", "Friend"); $A[] = array ("Cassie", "21", "Wife"); $A[] = array ("Zydox", "23", "Friend"); $A[] = array ("Patrick", "24", "Close Friend"); $A[] = array ("Kalle", "40", "Family"); $A[] = array ("John", "10", "Close Friend"); $A[] = array ("Anna", "12", "Friend");

« previous php.general (#134850) next »