title: How to remove square bracket from an array?
body: <p>I have an array..let say:</p>
  
  <pre><code>$array = [$a,$b,$c,$d];
  </code></pre>
  
  <p>How I can remove <code>[</code> and <code>]</code>?</p>
  
  <p>The expected result would be:</p>
  
  <pre><code>$a,$b,$c,$d
  </code></pre>
  
  <p>I used some array function e.g <code>array_slice</code> but it does not fill my requirement. Any ideas?</p>
  
  <p><strong>Note:</strong> I need to pass all array elements to function as argument. </p>
  
  <pre><code>e.g: function example($a,$b,$c)
  </code></pre>