RE: [PHP-WIN] RE: New function help

From: Date: Sun, 13 May 2001 14:30:15 +0000
Subject: RE: [PHP-WIN] RE: New function help
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-7520@lists.php.net to get a copy of this message
Au Contraire: Though I offered up the request for reverse_array, the code actually looks for array_reverse, and works on the newer Windows platform, but not on the older version loaded on the production Unix server. So yes, I got the name reversed, but no, getting that correct in the email would not make the code work. But the array_reverse_priv is in place and working. See www.bcsynod.org for an example. Until next .... Tim Lofstrom M.C.S.E. but not E. in Canada-----Original Message----- From: Paul Meagher [mailto:paul@datavore.com] Sent: 13 May 2001 06:04 To: php-windows@lists.php.net; #tim@madtuna.com Subject: Re: [PHP-WIN] RE: New function help There is a builtin array_reverse function in PHP. You just need to reverse the name of the function your were looking for :-) Regards, Paul Meagher ----- Original Message ----- From: "Tim Lofstrom" <tim@outdoorbc.com> To: <php-windows@lists.php.net> Sent: Friday, May 11, 2001 3:22 PM Subject: [PHP-WIN] RE: New function help > Here is my attempt: Any improvements welcomed. > > > function array_reverse_priv ($WorkArray) > { > $CountWorkArray = count($WorkArray) ; > for ($i = 0 ; $i < $CountWorkArray ; ++$i) > { > $NewArray[$i] = array_pop ($WorkArray) ; > } > return $NewArray ; > } > > Until next .... > > Tim Lofstrom > M.C.S.E. > > Original: > > Looking for reverse_array as a user added function. Anyone have it? > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#7520) next »