I have an array in php looks like this.
Array
(
[0] => Array
(
[source_language] => English
[target_language] => German
[document_name] => 1439441727_plugin (copy).docx
[title] => plugin (copy).docx
[product_group_name] => Article Rewrite
[id] => 1
)
[1] => Array
(
[source_language] => English
[target_language] => German
[document_name] => 1439536258_plugin (copy).docx
[title] => plugin (copy).docx
[product_group_name] => Article Rewrite
[id] => 10
)
)
I want to get the value from array. For that I am trying like this
$my_array = $array_data;
print_r($my_array);
//Here it showed the array like the above
foreach($my_array as $array_key) {
foreach( $array_key as $array_value) {
var_dump($array_value);
}
}
But here I have to make two loops to get data. So is there any kind of other way in which I can get the data in more standard way? Any help and suggestions will be really appreciable. Thanks
foreach($my_array as $array_key=>$arrayvalue) {Thats pretty standard