System retval for returning
<p>If there a way of avoiding the <code>$retval == 0</code>, so I can quickly call a system program for a test?</p>

<pre><code>&lt;?php
function test() {
system("grep -q foobar " . __FILE__, $retval);
if ($retval == 0) { return true; } else { return false; }
}
if (test()) { echo "true\n"; } else { echo "false\n"; }
?&gt;
</code></pre>
