Created: 2017.07.09
$var->foo
is an object reference.$var[foo]
is an array reference. While this sort of thing could be used interchangeably in some languages like javascript, in PHP an array and an object are two entirely different things - PHP - extracting array values ( square brackets vs arrow notation )