Posted by ZeldorBlat on 08/22/07 02:16
On Aug 21, 9:58 pm, pc <chavanpr...@gmail.com> wrote:
> I was wondering if there is a more gracious way to write the below
> code:
>
> //$input is an array .I just need its 0th and 2nd key-not the 1st.I
> want to avoid using temp
>
> $temp=array_keys($input);
> print $temp[0];print $temp[2];
>
> Thanks in advance!
> PC
Not really. Why is it such a problem to use $temp ?
[Back to original message]
|