This question already has an answer here:
What is the difference between => and -> in php? and when i should use those ? i know that -> can be use in object like $obj->foo and => is in array is there any other place we can use them ?
</div>
This question already has an answer here:
What is the difference between => and -> in php? and when i should use those ? i know that -> can be use in object like $obj->foo and => is in array is there any other place we can use them ?
</div>
Below link will provide you a full list of symbols and their usage.
Since you have asked, In short
=> is called T_DOUBLE_ARROW and is the separator for associative arrays, the '=>' created key/value pairs.
-> is called "object operator" or T_OBJECT_OPERATOR and it's used when you want to call a method on an instance or access an instance property.