Reply to Re: PHP Array Challenge!

Your name:

Reply:


Posted by Erwin Moller on 10/14/05 12:54

Oliver Saunders wrote:

> This is an amazing opportunity to win a tin of sardines if you can
> answer this difficult question correctly!
>
> Question:
> What kind of loop do you need to turn an array like this:
>
> $notes = array(
> '1:1',
> '1:2',
> '1:3'
> array(
> '2:1',
> '2:2',
> array(
> '3:1',
> '3:2'
> );
> '2:3'
> );
> '1:4'
> array(
> '2:4',
> '2:5'
> )
> );
>

You get an error when you try to create that array.
It is no valid PHP syntax.
So the first chalange is: Where to add the commas?
:-)

Did I win a can of sardines now?

Regards,
Erwin Moller

[Back to original 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

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