Posted by .:[ ikciu ]:. on 10/16/06 13:20
Hmm NurAzije <nurazije@gmail.com> wrote:
> Try this one, this will work :
> ---------------------------------------------------
> $test = explode('-','one-two-three-four-five');
> $view = new Array();
> foreach($test as $boo => $foo){
> $view[$boo] = $foo;
> }
> print_r($view);
heheheh
i can write your solution a bit simpler
$view = $test;
DONE - but your solution is wrong
correct solution:
$view = array_combine($test, $test);
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl
2be || !2be $this => mysql_query();
[Back to original message]
|