I keep receiving the following message on the class method noted below:
"The value of variable $array was never used."
I am not for sure why since I use the $array parameter in the foreach statement. Any suggestions on correcting this is greatly appreciated.
public function createMultiple($link, $array)
{
$item = $link->Container->Container->Data;
$return = array();
foreach($array as $key) {
if(strpos($key, "|") !== false)
{
$return[] = substr($key, 1);
}
else
{
$return[] = $item[$key];
}
}
return implode(",", $return);
}
Thanks,