All viewers I need help regarding PHP explode()
function.
$line = 'dd=541;nn=874;cc=21;mm=95;tt=41';
$lineexp = explode(';', $line);
print_r($lineexp);
This will produce the following output:
[
0 => 'dd=541',
1 => 'nn=874',
2 => 'cc=21',
3 => 'mm=95',
4 => 'tt=41'
]
How can I get just the value of the array as array instead?
Desired output:
[
0 => 541,
1 => 874,
2 => 21,
3 => 95,
4 => 41
]