I have a simple code
for($j=1;$j <= $xlsx->sheetsCount();$j++){
echo ‘
’;’;
print_r( $xlsx->rows($j) );
echo ‘
}
The output looks like this
Array
(
[ 0 ] => Array
(
[ 0 ] => CountryCodeRate
)
[ 1 ] => Array
(
[ 0 ] => AFGHANISTAN93$0.44535
)
[ 2 ] => Array
(
[ 0 ] => AFGHANISTAN MOBILE937$0.45525
)
[ 3 ] => Array
(
[ 0 ] => AFGHANISTAN MOBILE9370$0.45525
)
I would like to parse the info, into a variable and display so the output will look like this
skip first element [ 0 ] => CountryCodeRate
Country=AFGHANISTAN
Code=93
Rate=$0.44535
Country=AFGHANISTAN MOBILE
Code=937
Rate= $0.45525
Country=AFGHANISTAN MOBILE
Code=9370
Rate= $0.45525
Thank for the help