I'm having trouble to echo a result from a function within a function in the same class.
class className
{
function first_function()
{
echo "Here it is: " . $this->second_function('test');
}
function second_function($string)
{
return $string;
}
}
That returns only:
Here it is:
Echoing the $string in my second_function() results in:
testHere it is:
Any suggestions? Thank you.