PHP : strpos recursive function