Re: Pager_Sliding using strings?

From: Date: Sat, 26 Jul 2003 11:53:35 +0000
Subject: Re: Pager_Sliding using strings?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6838@lists.php.net to get a copy of this message
On Sat, 26 Jul 2003 12:31:15 +0100, Davey wrote: > Heres what I have: > > $data = array('foo','bar'); > $params = array( > 'itemData' => $data, > 'perPage' => 1, > 'delta' => 2, > 'append' => TRUE, > 'seperator' => ' | ', > 'clearIfVoid' => FALSE, > 'urlVar' => 'entrant' > ); > $pager = &new Pager_Sliding($params); > $page_data = $pager->getPageData(); > $entrant = implode('',$page_data); I'm happy you found an easy solution :-) > Also, I must note the implode() to get the $entrant, it seems the > array returned, the data is in the same index in that array as in > the $data array... is this a bug? shouldn't it always be in [0] ? absolutely not, you could have an associative array, the key names are always preserved. Lorenzo

« previous php.pear.general (#6838) next »