Results 1 to 6 of 6
Hybrid View
-
15th Jun 2009, 05:08 PM #1OPMemberWebsite's:
litewarez.net litewarez.com triniwarez.comDo you use these PHP functions with arrays ??
Ok so ill tell you the truth here.. i never heard of these functions until erlier today lol
what this basically does is allow you to paginate an array.. yes paginate
here's the function list and then some examples of them
PHP Code:next();
prev();
current();
reset();
end();
PHP Code:
$array = array('litewarez','katz','phaze','others');
//Next
echo current($array);//litewarez
echo next($array); //katz
echo end($array); //others
echo prev($array); //phaze
echo reset($array);//litewarez
next($array);
next($array);
next($array);
prev($array);
next($array);
echo current($array); // others
heres a full example of usage
PHP Code:$aFruit = array ('Tried' => array('Apple', 'Kiwi'),
'Not Tried' => array('Pear', 'Orange', 'Banana')
);
while($aChild = key($aFruit))
{
while($szItem = current($aFruit[$aChild]))
{
echo current($aFruit[$aChild]) . '<br />';
next($aFruit[$aChild]);
}
next($aFruit);
}
litewarez Reviewed by litewarez on . Do you use these PHP functions with arrays ?? Ok so ill tell you the truth here.. i never heard of these functions until erlier today lol what this basically does is allow you to paginate an array.. yes paginate here's the function list and then some examples of them next(); prev(); current(); Rating: 5Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
15th Jun 2009, 07:59 PM #2Respected DeveloperWebsite's:
PlatinumW.org NexusDDL.com HD-United.org CheckLinks.org FLVD.orgNice one dude.
Current projects:
Megaupload Premium Multifetch Script | FF Plugin: Tinypic and Imagevenue Image Remoter
Projects in hiatus:
IPB Linkchecker Bot | VB Linkchecker Bot
-
15th Jun 2009, 08:11 PM #3The Wise OneWebsite's:
twilight.ws ddlrank.comz0omg it's litewarez with another great piece of code
PS: Never heard of it either.I can always be contacted by sending a tweet @twilightws
-
16th Jun 2009, 03:14 AM #4Respected DeveloperWebsite's:
X4B.org
-
16th Jun 2009, 08:33 AM #5MemberWebsite's:
hostero.net
-
16th Jun 2009, 08:53 AM #6OPMemberWebsite's:
litewarez.net litewarez.com triniwarez.comso when usung a foreach loop your going threw a whole array but by using these functions php will remember the current position the you navigated to. aka the word pagination
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
(VB6) Using functions
By JasonCairns in forum Web Development AreaReplies: 0Last Post: 10th Jan 2012, 01:10 PM -
[For Hire] PHP Functions
By _Vick in forum Completed TransactionsReplies: 0Last Post: 3rd Dec 2011, 10:28 AM -
PHP Functions
By Hydrode in forum General DiscussionReplies: 3Last Post: 7th Feb 2011, 08:05 PM -
Who Knows This Functions In phpBB3 ?
By netmonster in forum phpBBReplies: 6Last Post: 28th Apr 2010, 11:02 AM -
2 functions 1 onclick ?
By Porsche_maniak in forum Webmaster DiscussionReplies: 8Last Post: 14th Apr 2010, 07:58 PM
themaManager - edit and manage...
Version 4.20 released. Open older version (or...