[Solar-talk] a blond moment please help!

Michael Soule mikesoule at gmail.com
Tue Nov 6 11:43:58 CST 2007


$final = array();foreach( $tmpArray as $key => $val ) {
    $final[$key] = $val['image'];
}

that's the shortest approach I can think of.

mike

On 11/6/07, Jeff Surgeson <solar at 3hex.com> wrote:
>
> Howzit,
>
> Having a blond moment
>
> array (
>     "name" => array("image" => "22198103.jpg"),
>     "type" => array("image" => "image/jpeg"),
>     "tmp_name" => array ("image" => "/tmp/phpRvGx9q"),
>     "error" => array ("image" => 0),
>     "size" => array ("image" => 4670)
> );
>
> array (
>   "name" => "22198103.jpg",
>   "type" => "image/jpeg",
>   "tmp_name" => "/tmp/phpRvGx9q",
>   "error" => 0,
>   "size" => 4670,
> );
>
> How do I programaticly turn array1 into array2 ?
>
>
> --
> ...........::::::...........
> Jeff Surgeson / South Africa
> _______________________________________________
> Solar-talk mailing list
> Solar-talk at lists.solarphp.com
> http://mailman-mail3.webfaction.com/listinfo/solar-talk
>



-- 
Michael Soule
mikesoule at gmail.com
321.274.6326
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-mail3.webfaction.com/pipermail/solar-talk/attachments/20071106/1f31c9c7/attachment.html


More information about the Solar-talk mailing list