Problem Statement
What happens if a PHP function does not have a return statement?
Explanation
If a function has no return statement, PHP automatically returns null. This is common for functions that only print or modify data.
Code Solution
SolutionRead Only
function test(){} $x = test(); // null