You are here: Re: Query on explode() « PHP Programming Language « IT news, forums, messages
Re: Query on explode()

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();

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация