My code receives some results as shown below
$a=("es: $f, es1:$f1, es2:$f2, es3:$f3, es4:$f4, es5:$f5 ,es6:$f6, es7:$f7 " );
$array = explode(",", $a);
$output = print_r( $array, true ) ;
$longitud = count($array);
//echo"$longitud";
for($i=0; $i<$longitud; $i++)
{
echo $array[$i];
echo "<br>";
}
when i do this i get :
One of the things that I tried without result is to obtain only the values that they have, in this case it would be es2:2019-09-30 and es7:2019-09-29 placing an if inside the for, if anyone could help me. Thank you very much