title: how to expand an array elements as separate parameters to a function
body: <p>I have an array of colors having dynamic values which depends on database. now these values are required in a function which takes values only like this function('para1','para2','para3','para4')
   where param1 to param4 are color values in an array.
  Problem is how can i parse these values to that function in the above stated format.Only a programminng logic required.Language is php.</p>
  
  <p>Suppose dynamic array is color[]=('red','maroon','blue','green');
  and these value should be passed to this function like :setLineColor('red','maroon','blue','green');</p>
  
  <p>I m using this function for creating graphs.(Lib using PHP_graphlib: link: <a href="http://www.ebrueggeman.com/phpgraphlib/documentation.php" rel="noreferrer">http://www.ebrueggeman.com/phpgraphlib/documentation.php</a>)
  Any other suggested library is welcomed.Plz provide a simple example with it.</p>