title: php function with variable and array
body: <p>I am trying to create a PHP function with 2 parameters. One parameter is a variable and the second is an array like this</p>
  
  <pre><code>&lt;?php
  function Myfunction($variable, $array=array()){
  foreach($array as $item){
          echo $variable;
          echo  $item;
      }
  }
  ?&gt;
  </code></pre>
  
  <p>I want a call like this:</p>
  
  <pre><code>&lt;?php
  Myfunction(blue, 1,3,6,10,5);
  ?&gt;
  </code></pre>
  
  <p>"blue" is the variable
  "numbers" insert in an array.</p>
  
  <p>I tried something but it does not work.</p>
  
  <p>Who can help me with this?</p>