$authors = R::find( 'friends', '`user` =?', [$var3]);
return $authors;
echo '<pre>' . print_r($authors, true);
сервер ответил: <pre>Array
(
[2] => RedBeanPHP\OODBBean Object
(
[properties:protected] => Array
(
[id] => 2
[user] => koko234@mail.com
[friend] => lopolop2223@yandex.ru
)
[__info:protected] => Array
(
[type] => friends
[sys.id] => id
[sys.orig] => Array
(
[id] => 2
[user] => koko234@mail.com
[friend] => lopolop2223@yandex.ru
)
[tainted] =>
[changed] =>
[changelist] => Array
(
)
[model] =>
[data.bundle] => Array
(
)
)
[beanHelper:protected] => RedBeanPHP\BeanHelper\SimpleFacadeBeanHelper Object
(
)
[fetchType:protected] =>
[withSql:protected] =>
[withParams:protected] => Array
(
)
[aliasName:protected] =>
[via:protected] =>
[noLoad:protected] =>
[all:protected] =>
[castProperty:protected] =>
)
[3] => RedBeanPHP\OODBBean Object
(
[properties:protected] => Array
(
[id] => 3
[user] => koko234@mail.com
[friend] => aboba121@mail.com
)
[__info:protected] => Array
(
[type] => friends
[sys.id] => id
[sys.orig] => Array
(
[id] => 3
[user] => koko234@mail.com
[friend] => aboba121@mail.com
)
[tainted] =>
[changed] =>
[changelist] => Array
(
)
[model] =>
[data.bundle] => Array
(
)
)
[beanHelper:protected] => RedBeanPHP\BeanHelper\SimpleFacadeBeanHelper Object
(
)
[fetchType:protected] =>
[withSql:protected] =>
[withParams:protected] => Array
(
)
[aliasName:protected] =>
[via:protected] =>
[noLoad:protected] =>
[all:protected] =>
[castProperty:protected] =>
)
)