Hi Chris,

> Is there a better way to write this than either of the below? The
> foreach + tempvar version bothers me :)
>
> $arr = array( 1, 2, 3 ) ;
>
> then -
>
> $arr = array_combine(array_values($arr), array_values($arr));

$arr = array_combine($arr, $arr);


Kind regards,
James McGlinn
__________________________________
CTO
Eventfinder Limited
Suite 106, Heards Building
2 Ruskin Street, Parnell, Auckland 1052
Phone: +649 365 2342
Mobile: +6421 633 234

[email protected]  |  www.eventfinder.co.nz

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to