PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi, I made the function isInputValid() a public function and called it from outside the class with a test string "hello" and it returned '1' which i assume means true. So it does work, but why not from inside the other function. I also tried calling the function using $this->isInputValid("hello") from inside the classes constructor and it still came up with the error on line 60 rather than the constructor so it worked from inside the constructor.