class SomeParser { function SomeParser() { reset_something(); } function reset_something() { } }
when i use the class it gives me reset_something() undefined ! how is this possible??!?!?
function SomeParser() { $this->reset_something(); }
yep that works,
didn't know it required $this in php =)
gotta set an object 🙂