I was just reading some code and I came across a function named __toString
. Here is the function prototype:
public function __construct($par)
What is the reason the coder chose __construct and not construct as the function name?
I have read this question which says that private and protected functions can start with an underscore, but it is a public function. Why has the coder chosen to use underscore in this case?