I'm trying to create a web app and I want to make key value pair array. Like this:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"></meta>
<link rel="stylesheet" type="text/css" href="css/style.css">
<title></title>
<script type="text/javascript" charset="utf-8" src="lib/jquery-1.11.0.js"></script>
<script type="text/javascript" charset="utf-8" src="script/main.js"></script>
</head>
<?php
$data = array('grant_type' => $authorization_code);
// more code goes here
?>
<div class="container">
</div>
</body>
</html>
For some reason, the code above just prints $authorization_code); // more code goes here ?>
So it seems that the execution stops everytime I insert '=>' to the code. This occurs even if '=>' is commented.
Before down voting this please consider I already feel incredibly dumb and I really, really did not find an answer to this by Googling.
EDIT
Added full source.