A simple MySQL table namely centers
is out there with Center
as its model and code
as one of the columns.
$center_found=Center::find(6);
echo " code from method 1 = ".$center_found->code;
echo " code from method 1 = ".$center_found['code'];
echo " type = ".gettype($center_found);
To my wonder both ways work to find out the code
and the type shows to be object
.
So
1) what is the return type of find
?
2) Does the return type ever vary except when no matching result exists ?