I apologize for the misrepresentation of the problem, I myself have recently been dealing with the so-called OOP and I still do not understand why and why. But anyway, I’ll be fine! Now I’m trying to get the getTitle () string I’m typing with the setTitle () function I wrote so that when a value is sent to setTitle () it is passed to getTitile () and then I print it, where I need it. But … it works correctly when I set a setTitle () value before calling getTitile (). Can this sequence be reversed?
What do I mean?
I want to set a different title on each page, but this title is set by the body of the page, respectively, once the head.php where the getTitile ()