set a function equal to a variable so i can do this($var)
<p>hey..newbie here..quick php questions</p>

<p>ihave  a function <code>&lt;?php the_search(); ?&gt;</code> that just echoes what people searched for</p>

<p>i want to put that in to another function <code>get_data($var)</code> to get some data..</p>

<p>how can i set <code>&lt;?php the_search(); ?&gt; equal to some $var..</code>
so i can do</p>

<pre><code>$thing = get_data('$var');
</code></pre>

<p>sorry if this sounded stupid</p>
