I print some data using for loop.My code work corrcetly but I want to skip row if specific value will be empty
my code
$count = count($cd);
for ($i = 0; $i < $count; $i++)
{
print'["'.$cd[$i][2].'", '.$cd[$i][4].', '.$cd[$i][5].','.$count.',"'.$cd[$i][8].'","'.$cd[$i][0].'", "'.strip_tags($cd[$i][3]).'","'.$cd[$i][6].'"]';
if ($i < ($count - 1))
{
echo ', ';
}
}
If value of $cd[$i][2] and $cd[$i][4] will be blank the print skip this row
any idea