How to dig to the properties of the object
-
There's an object.
array(1) { [0]=> object(yii\web\UploadedFile)#84 (5) { ["name"]=> string(34) "lenovo-laptop-ideapad-z50-back.png" ["tempName"]=> string(44) "E:\serv\OpenServer\userdata\temp\phpD4D6.tmp" ["type"]=> string(9) "image/png" ["size"]=> int(51033) ["error"]=> int(0) } }
I've got to catch up.
name
♪
-
In order to gain access to the object ' s properties in the facility ' s array, it is necessary to:
1. Have access to the facility by using its index in the massiva
2. To gain access to the circumference by using the operator
->
$yourArray[0]->name