Suppose I've a PHP function returning some values.
<?php
function wpse_20131026() {
$var = "I'm a function";
return $var;
}
?>
How can I check whether it's returning empty or not? I tried the following:
<?php
if( !empty( wpse_20131026() ) ) {
//do_something;
}
?>
But it's warning me:
Fatal error: Can't use function return value in write context