Sunday, 5 June 2016

What is the "->" PHP operator called and how do you say it when reading code out loud?





What do you call this arrow looking -> operator found in PHP?



It's either a minus sign, dash or hyphen followed by a greater than sign (or right chevron).



How do you pronounce it when reading code out loud?


Answer



The official name is "object operator" - T_OBJECT_OPERATOR. I call it "arrow".


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...