View Single Post
Old 04-18-2009, 03:46 PM   #16 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Quote:
Originally Posted by ETbyrne View Post
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?
Salathe is offline  
Reply With Quote