How to make a foreach with this type of array please ?
Thanks.
Array (
[0] => Array (
[0] => TPK12\"
[1] => MRP59\"
[2] => MSM105\"
[3] => RGS70\"
[4] => GDN36\"
)
)
I tried that but it echoes just Array():
foreach($match as $value) {
echo $value;
}
For a two-dimensional array you can use this:
foreach($match as $subArray) {
foreach($subArray as $value) {
echo $value;
}
}
Since you have a multidimensional array, you need to either have a foreach inside another, or specify which array you want to iterate.
foreach ($match[0] as $value) {
echo $value;
}