Get php variables w/o echo'ing?

Is it possible to return php data without echo’ing print’ing the results in the PHP script? I need to find a secure way, to get data from a PHP script, so that the user can’t sniff it or just read the script.