Re: RE: php-general Digest 9 Dec 2011 20:09:28 -0000 Issue 7604

From: Date: Mon, 12 Dec 2011 21:12:40 +0000
Subject: Re: RE: php-general Digest 9 Dec 2011 20:09:28 -0000 Issue 7604
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-315989@lists.php.net to get a copy of this message
On Mon, Dec 12, 2011 at 1:06 PM, David Savage <dsavage@cytelcom.com> wrote: > Would "ksort($sortarr,SORT_STRING)" on a 1 dimensional array with a key > comprised of > a person's name, > "-", and > time stamp > I..E. (key: david savage-2011-12-12 14:43:00) > actually delete duplicate keys from the array, if there were two keys the > same ? > Unless I'm missing something, you couldn't have two entries with the same key in the array to begin with. $a = array(); $a['david savage-2011-12-12 14:43:00'] = 1; $a['david savage-2011-12-12 14:43:00'] = 2; print_r($a); Array ( [david savage-2011-12-12 14:43:00] => 2 ) David

« previous php.general (#315989) next »