Re: function question

From: Date: Wed, 29 Oct 2003 22:21:08 +0000
Subject: Re: function question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168083@lists.php.net to get a copy of this message
From: "Brian V Bonini" <b-bonini@cox.net> > function splitPageResults($query, $max_rows, $count_key = '*', > $page_holder = 'page') { > > Am I wrong in assuming that $count_key is being explicitly set to '*' in > this instance? Only if no value is passed when the function is called. splitPageResults('some query',32) will result in $count_key and $page_holder getting the defaults listed. splitPageResults('some query',32,'foo','bar') will now results in $count_key => foo and $page_holder => bar More examples in the manual, I'm sure... ---John Holmes...

« previous php.general (#168083) next »