What does -> in PHP mean? I just learned it and don’t understand anything. Please explain it to me. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
The arrow symbol "->" is used to access the properties and methods of the object.
It means getting properties or calling methods from an object. For example, suppose there is an object named $obj that has a property named $property and a method named $method.
can be accessed using arrow symbols:
$obj->property;??//?訪問對象的屬性 $obj->method();??//?調(diào)用對象的方法