Jump to content

Can't define associative array


php44095

Recommended Posts


<HTML>

<?php

$arr = array("sue" => "betsy", "frank" => "marge");

?>

</HTML>

 

This produces the following HTML page:

 

"betsy", "frank" => "marge");

 

Its like when I use the => to make my associative array, the code thinks I'm closing the php codeblock and then just prints the rest of it to the screen...

Link to comment
https://forums.phpfreaks.com/topic/209133-cant-define-associative-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.