hi guys i am Currently Confused why do i get this error about missing argument when i compile the code it gives me this error Warning: Missing argument 5 for print_LCS(), here is my code:
this is the function
function print_LCS($b,$x,$i,$j,$k){
$fLCS=array();
if ($i==0||$j==0)
{
return 0;
}
if ($b[$i][$j]=='c')
{
print_LCS($b,$x,$i-1,$j-1);
$fLCS[$k] = $x[$i-1]." ";
$k++;
}
elseif ($b[$i][$j]=='u')
{
print_LCS($b,$x,$i-1,$j);
}
else
{
print_LCS($b,$x,$i,$j-1);
}
return array($fLCS);
}
and this is the function call:
list($final)=print_LCS($var2,$first,$var3,$var4,$var5);
hoping for your quick response guys. thank you So much.