I just switched from Procedural Programming to Object Oriented and I was wondering if there was a way to access a function outside of a class?
Example:
function dog($variable) { echo $variable . " Bark!"; } class Cat { var $cat = dog("Meow); // this doesn't work ! ! ! /* * If the function dog were in the class I'd access it by using: * $this->dog("Meow"); * But Since it's out of the class, I am not sure how to use it. */ }