Function : refil

The refil() function returns the second argument supplied if the If a trimmed value of the first argument is not empty.

Sample
  $value  = 'foo';
  $newval = refil($value, 'bar');

  echo $newval; //bar