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... Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.