Difference between -> and => in laravel

The difference is that => is the assign operator that is used while creating an array.


For example: array(key => value, key2 => value2)


And -> is the access operator. It accesses an object's value

Post a Comment

0 Comments

Visual Studio