Is there any way of accessing hash without a loop? If not, what are the other easiest ways? The variable is coming from Symfony2 createQueryBuilder...->...->getResult();
echo '<pre>'; print_r($var);
Array
(
[0] => User\RecordBundle\Entity\UserEntity Object
(
[id:protected] => 5
[fullname:protected] => yoyo
[email:protected] => yoyo@yoyo.com
[username:protected] => yoyoyoy
[password:protected] =>
[confirmation:protected] =>
[tc:protected] =>
[hash:protected] => bb53ed2057d377bab37839ba0d66091ada5c525f
[salt:protected] => aeff8de4e3a3b28412b27cb02932547ca7e56249
[created:protected] => DateTime Object
(
[date] => 2014-06-10 21:29:59
[timezone_type] => 3
[timezone] => Europe/Ja
)
[updated:protected] =>
)
)