I'm a beginner in php.
I have these variables:
$tipo='a,b,c,d';
$metragem='15,18,32,44';
I need it to swallow
a: 15
b: 18
c: 32
d: 44
but if the values are like these below:
$tipo='a,,,';
$metragem='15,,,';
Just bring
a: 15
How can I do it? Is it using explode and foreach?