title: Browser goes blank when using this session variable
body: <p>I have a session variable which tries to retirve all image file names below:</p>
  
  <pre><code>$_SESSION ['fileImage'][] ['name'] = $_FILES ['fileImage'] ['name'];.
  </code></pre>
  
  <p>But if I try an put this session code in the jsno.encode() function below then the browser goes blank, why is this and how can it be fixed so browser does not go blank?</p>
  
  <pre><code>var imagename = &lt;?php echo json_encode(isset($_SESSION ['fileImage'][]) ? $_SESSION ['fileImage'] : null); ?&gt;;
  </code></pre>