|  | 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] |