use a output of class to construct a new if and else
<p>i am using a <code>user id , friend id , page</code> and passing the values to a class so that it could detect that the login user can view the profile of other user based on other user's privacy setting. its such as after the values are passed to the class the query stuff takes place and i am using echo to tell if <code>allow</code> or <code>dont</code> means the output of class comes in these two words based on privacy setting . now the problem is how do i use this output to be used in a variable ?</p>

<p>i am passing the values into class like this </p>

<pre><code>$error_result-&gt;check_allowed($friend_id,$id,$page); 
</code></pre>

<p>now i know i get a output from that class as allow or dont . now how do i use that output further ?</p>
