... oparator in php code example
Example 1: -> in 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();
Example 2: operators in php
if (condition)
code to be executed if condition is true;
else
code to be executed if condition is false;