0
How can I use PHP operator names in a method (controller) ?
Example:
public function new() {
//Código aqui
}
Notice I used the name new
the same used to instantiate an object.
How to ignore this name in a method?
0
How can I use PHP operator names in a method (controller) ?
Example:
public function new() {
//Código aqui
}
Notice I used the name new
the same used to instantiate an object.
How to ignore this name in a method?
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.
Yes that’s possible! as long as it’s version 7. In PHP 7, can the class method contain a keyword name? This is good or bad?
– rray
In the previous versions there is no way to do any gambiarra at least ?
– Guilherme SpinXO
There are some ways, see reply
– rray
Thanks a friend rray.
– Guilherme SpinXO