I have a menu like this:
Instead of strpos(), you could try this:
strpos()
/>
$current is the name of the current file, without the .php extension.
$current
.php