Returning two function from function
<p>I am calling a search function from my object and in return i want to send the result plus some message so can i return two variable one with array and one with the message  like $data and $message</p>

<pre><code>$this-&gt;query=("select * from user where pno='".$search."'");
$rd = $this-&gt;executeQuery();
return @$data = $rd-&gt;fetch_assoc();

return $message;
</code></pre>

<p>when it get back to </p>

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

<p>how can i fetch the result from it 
Thanks</p>
