title: Notice: Array to string conversion when echoing the array
body: <p>IM getting the error</p>
  
  <pre><code>Notice: Array to string conversion php
  </code></pre>
  
  <p>by calling my array from a outside class.. can anybody spot the problem here</p>
  
  <p>script home.php</p>
  
  <pre><code>echo b::addarray(123, sea, 1);//i tried this way,dint work either("123","sea","1")
  die();
  </code></pre>
  
  <p>the script with the array</p>
  
  <pre><code>class b
  {
  
      static function addarray($a,$b,$c){
  
          $red = array();
          array_push($red, $a,$b,$c);
          return $red;
      }
  }
  </code></pre>