You can roll your own fairly easily:
function mycmp($a,$b) {
return strcmp($a[1],$b[1]);
}
usort($array, 'mycmp');
...something like that at any rate.
-Steve
On Thursday, November 15, 2001, at 10:07 AM, Richard S. Crawford wrote:
> Of the type...
>
> $array[0][0] = "!row of c's";
> $array[0][1] = "cccc";
> $array[1][0] = "row of a's";
> $array[1][1] = "aaaa";
> $array[2][0] = "a row of b's";
> $array[2][1] = "bbbb";
>
>
> such that you sort on the value of the y-column?
>
> In this case, it would end up as:
>
> +--------------+------+
> | row of a's | aaaa |
> | a row of b's | bbbb |
> | !row of c's | cccc |
> +--------------+------+
>
> Strange that I've been working with PHP this long and have never come
> across this problem.
>
>
>
> Sliante,
> Richard S. Crawford
>
> http://www.mossroot.com
> mailto:[EMAIL PROTECTED]
> AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford
> "It is only with the heart that we see rightly; what is essential is
> invisible to the eye." --Antoine de Saint Exup�ry
>
> "Push the button, Max!"
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]