I found the answer:
$w = array_shift ($_SESSION["providerarray"]["provider"]);
 $w = array_shift ($_SESSION["providerarray"]["priority"]);


"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If I have a multi dimension array like this:
> Array ( [provider] => Array ( [0] => 3 [1] => 2 [2] => 4 [3] => 1 )
> [priority] => Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 )
> how do I take off the top elements so I will only have three providers and
> three priorities left?
> If I do array_shift, it takes off all of the providers.
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to