On Wed, Feb 11, 2009 at 4:39 PM, Moritz Mertinkat <[email protected]> wrote:
> Hi there,
>
> the problem is that array_splice doesn't care about your string keys.
> The manual states that array_splice($input, 0, 0, array($x, $y)) is identical
> to array_unshift($input, $x, $y) which should make it clearer...
>
> So, instead use array_merge or the + operator:
>
> $locations1 = array_merge(array('Any' => 'Any'), $locations);
> $locations2 = array('Any' => 'Any') + $locations;
>
> Regards,
> Maurice

Thanks
-- 
=======================
Registered Linux User #460714
Currently Using Fedora 8, 10
=======================

Reply via email to