Array ( [0] => Array ( [email] => abcd@gmail.com [fname] => sachin ) ) : how can i access each value such as email ,fname.

and am trying to access it like 

echo $resultData2[0]->email;
what am doing wrong?