for example, print_r ($ rows); is assumed to have the following array and value.
Array ( [dept] => その他 ) 1 Array ( [dept] => 管理部 ) 1 Array ( [dept] => 管理部 ) 1 その他 管理部 管理部
I want to extract only the value of a multidimensional array. First, I got the key of the array.
foreach($rows as $value){ echo print_r($value) ."<br />" ; }
than, dept as the key, that of multidimensional array sees each value
foreach ($rows as $value) { echo $value['dept'] ."<br />" ; }