]; #[EMAIL PROTECTED]
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" <[EMAIL PROTECTED]
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 (
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 ;
}
Un