php44095 Posted July 28, 2010 Share Posted July 28, 2010 <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 More sharing options...
lemmin Posted July 28, 2010 Share Posted July 28, 2010 Is your file named .php? Do you have php configured on your server? Are you running it from your file system instead of a server? Link to comment https://forums.phpfreaks.com/topic/209133-cant-define-associative-array/#findComment-1092227 Share on other sites More sharing options...
php44095 Posted July 28, 2010 Author Share Posted July 28, 2010 Ok nevermind, it wasn't named php lol Link to comment https://forums.phpfreaks.com/topic/209133-cant-define-associative-array/#findComment-1092229 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.