syntax - What Does This Mean in PHP -> or => - Stack Overflow

PHOTO EMBED

Thu Oct 29 2020 15:48:38 GMT+0000 (Coordinated Universal Time)

Saved by @richard #php

// Create a new instance of MyObject into $obj
$obj = new MyObject();
// Set a property in the $obj object called thisProperty
$obj->thisProperty = 'Fred';
// Call a method of the $obj object named getProperty
$obj->getProperty();
content_copyCOPY

https://stackoverflow.com/questions/14037290/what-does-this-mean-in-php-or