I got PHP function like this:
function doingSomething($arg)
{
...
echo($someString);
}
I don't want to copy/pase that function and make second one only if I need that function to return value, not echo it. How could I modify it so it will just return $someString whenever I need it?