php max() and min() on associative array
Posted
by stef
on Stack Overflow
See other posts from Stack Overflow
or by stef
Published on 2010-05-30T09:55:29Z
Indexed on
2010/05/30
10:02 UTC
Read the original article
Hit count: 264
php
print_r($pages); print max($pages); print min($pages);
shows me
Array ( [0] => 1 [1] => 2 [2] => 3 ) 1 2
While I was expecting the last two numbers to be 3 and 1. How come?
© Stack Overflow or respective owner