On Mon, Dec 12, 2011 at 1:06 PM, David Savage <[email protected]> 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