Wht do not use "strcmp()"?
<code>strcmp($r, $value) === 0</code>