I have a function the_search() that just echoes what people searched for.
I want to put that in to another function, get_data($var) to get some data.
How can I set the_search(); equal to some $var so that I can do the following:
$thing = get_data('$var');
a) You could change
the_searchnot toechothe data, but toreturnit.b) You could use Output Buffering: