Codice PHP:
function a() {
..........

   if (
$a != '')
   {
      echo 
"funzione eseguita correttamente";
      return 
true# o quello che vuoi
   
}

   return 
a();