foreachで連想配列から特定の値を取得 – PHP

多次元連想配列

print_r($select_data);

//Array ( 
//[0] => Array ( [username] => user [mail] => user@gmail.com //[password] => userpassword [newsletter] => NULL) 
//[1] => Array ( [username] => user [mail] => user@gmail.com //[password] => userpassword [newsletter] => NULL) 
//)

実装

foreach ($select_data as $valuee) {
echo $valuee['mail'];
echo $valuee['password'];
};
//user
//userpassword
//user
//userpassword