title: php - syntax error, unexpected T_DOUBLE_ARROW
body: <p>how i can rid of this error??</p>
  
  <pre><code>Parse error: syntax error, unexpected T_DOUBLE_ARROW in /var/www/core/restvt.api.php on line 35
  </code></pre>
  
  <p>PHP Code :</p>
  
  <pre><code>            $datax = Array();
  
      foreach ($inis as $key =&gt; $data){
  
          if ($data=="mem"){
              $str = number_format($ARRAY[(array_search($data.':',$ARRAY)+2)]/1024,0,',','.')." MB [ ".number_format(($ARRAY[(array_search($data.':',$ARRAY)+2)]/$ARRAY[(array_search($data.':',$ARRAY)+1)])*100,0,',','.')." % ]";
              array_push($datax, "mem"=&gt;$str); //error here, why?
          }else{
          array_push($datax,$data=&gt;$ARRAY[(array_search($data.':',$ARRAY)+1)]);
          }
      }
  
          $jsonr = json_encode($datax);
  </code></pre>
  
  <p>thx alot for your help...</p>