I wrote this rule to check if a user is in a specific group. But when executing, $result shows a "1" as output to show it's true that the user is member of that group.
$result = $adldap->user()->inGroup('john.doe', 'Testgroup', $recursive=NULL);
print_r($result);
How can I replace this output to a custom echo message for example?
I'm using this PHP class for my project: http://adldap.sourceforge.net/