Re: select unique values from an array

From: Date: Sat, 01 Feb 2003 17:49:05 +0000
Subject: Re: select unique values from an array
Groups: php.general 
Request: Send a blank email to php-general+get-133893@lists.php.net to get a copy of this message
In a message dated 2/1/2003 9:39:55 AM Pacific Standard Time, peter@orillia.net writes: >I am attempting to populate form elements from a text file which has been >read and split into arrays. Some of the items are repeated many times: grade >level, for example. Is there a way of just selecting unique values so that >each value is displayed only once in the check boxes or radio buttons? Take a look at the function array_unique() which removes duplicate values from an array. Perhaps this function can help you. Janet ---------------------- Janet Valade Author, PHP & MySQL for Dummies

« previous php.general (#133893) next »