I wrote a function that I thought cannot be more basic:
In functions.php:
function testowa() {
$stringToReturn = "pies";
return $stringToReturn;
}
Then I'm trying to call it in single.php:
include_once ('functions.php');
testowa();
var_dump($stringToReturn);
And var_dump
displays NULL.
Where could I possibly do anything wrong?