returning three variable to function and checking them
<p>Hello please help me out regarding returning the variable from the function 
I am return three variable from the function likw this </p>

<pre><code>return $data 
return $success 
return $error
</code></pre>

<p>calling from </p>

<pre><code>$check  =$user-&gt;search($result);
</code></pre>

<p>now to put some condition according to the variable received .The problem i am facing is that how can i get the name of the vairable which i have received . i want to receive it by name not by value
like </p>

<pre><code>if($check == $data )
</code></pre>
