Posted by pakalk on 08/22/07 06:48
On Aug 22, 3:58 am, 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];
Yeah, to write..
$tmp = array_keys( $input );
echo $tmp[0], $tmp[2];
[Back to original message]
|