title: PHP: Illegal string offset
body: <p>I know there already are questions like this, but It didn't help me.</p>
  
  <p>I get the follow error on my site: </p>
  
  <blockquote>
    <p>Warning: Illegal string offset 'networkConnections' in
    /var/www/bitmsg/templates/header.php on line 25 {</p>
  </blockquote>
  
  <p>The line is
      <code>
  &lt;?= $bmstatus["networkConnections"] ?&gt; p2p nodes
  </code></p>
  
  <p>if I <code>print_r</code> $<code>bmstatus</code>, then I get:</p>
  
  <pre><code>{
      "numberOfBroadcastsProcessed": 2308,
      "networkStatus": "connectedAndReceivingIncomingConnections",
      "softwareName": "PyBitmessage",
      "softwareVersion": "0.4.1",
      "networkConnections": 52,
      "numberOfMessagesProcessed": 22888,
      "numberOfPubkeysProcessed": 8115
  }
  </code></pre>
  
  <p>How to I fetch the information from this array?</p>
  
  <p>I've tried both <code>$bmstatus['networkConnections']</code> and <code>$bmstatus-&gt;networkConnections</code>
  but both is returning that error?</p>