I have a function like this:
protected function example($param = null)
{
}
and when I call it like this:
$this->example("string");
or like this: $string = "string"; $this->example("string");
the parameter value is still null. What am I doing wrong?
protectedkeyword), so you'd need$this->example("string");.example()is not the same as$this->example()or$class->example()in OOP$paramis null?