First off, we’re talking about PHP 7.4.10, but any general intel is appreaciated! Summarized question: I’d like to define a static method in an abstract class in such a way, that the method can only …
Tag: encapsulation
PHP encapsulation without class?
Is it possible to encapsulate, a variable or function let say, in PHP without wrapping them in a class? What I was doing is: My intention is to avoid naming conflict. This routine, although it works, makes me tired. If I cannot do it without class, it is possible not to instantiate a class? and just use the variable or