Forum Moderators: coopster

Message Too Old, No Replies

Need help with a simple array example please.

         

Simone100

4:08 pm on Sep 18, 2006 (gmt 0)

10+ Year Member



Hi, I need help with the first part of this php array.
Should I put the html pages in [] brackets also or just leave inside
quotation marks only? And any comma after the number? I've seen it boths ways. Thanks!

$content = array (
"htmlpage" => 0,
"htmlpage" => 1,
"htmlpage" => 2,
);

Psychopsia

4:20 pm on Sep 18, 2006 (gmt 0)

10+ Year Member



Hi Simone100, your code it's ok.
You don't need the brackets in this case.

Check the Array manual [php.net] for more information.

[edited by: Psychopsia at 4:23 pm (utc) on Sep. 18, 2006]