title: Are data types in php categorized into reference type and value type? Like C#
body: <p>In c#,data type is divided into reference type and value type.</p>
  
  <p>Then in php,data type is still divided as c#?</p>
  
  <p>I find a interesting thing.</p>
  
  <p>array is a reference type in most language.</p>
  
  <p>for example, in c#:</p>
  
  <pre><code>    int[] a ={1,4,5};
      int[] b = a;
      a[1] = 10;
      print(a);
      print(b)
  </code></pre>
  
  <p>both a and b are [1,10,5]</p>
  
  <p>but in php,suppose there is below code:</p>
  
  <pre><code>&lt;?php
  $a=array(1,4,5);
  $b=$a;
  $a[1]=10;
  print_r($a);
  print_r($b);
  ?&gt; 
  </code></pre>
  
  <p>in the end, the $a is (1,10,5) and the $b is (1,4,5). It seems the array in php is value type.</p>
  
  <p>So who can answer my question:
  Are data types in php categorized into reference type and value type?</p>