I'm unfamiliar with exact differences between these two operators:
->
and
=>
Are there many differences? One assigns an array, and the other just renames or something to that effect?
->
is a method call or property call operator, and =>
is an array assigning operator
$foo = new Bar();
$foo->test();
// or even
$foo->bar = 'baz';
// vs
$foo = array(
'bar' => 'test'
);
// And wrapping it all together!!!
$foo = new Bar();
$foo->baz = array( 'bar' => 'baz' );
-> is a this operator which is used for accessing class properties whereras
=> is a used for arrays
->
is used to access a property of an object where as =>
is used to marry a array key up with its value during assignment.