04-18-2009, 03:46 PM
|
#16 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
Quote:
Originally Posted by ETbyrne
PHP Code:
$x = 1; $array = array(); while($x <= $this->totalPages) { $array[] = $x; $x++; } return $array;
|
Maybe I'm missing something, but why not just use return range(1, $this->totalPages) in place of that entire chunk?
|
|
|
|