title: How to get ref of an array in PHP 5?
body: <p>In php 5, all variable and objects are passed by reference, but i can't get my codes work</p>
  
  <p>My codes is:</p>
  
  <pre><code>$arrayA = array();
  
  $array = $arrayA;
  ...
  if(!in_array(thedata, $array)
      $array[] = thedata;
  var_dump($arrayA);
  </code></pre>
  
  <p>The result is empty, am i missing something simple?</p>