PHP Simple Solution
\nclass Solution {\n\n    /**\n     * @param String $s\n     * @return Integer\n     */\n    function minimumMoves($s) {\n        $times = 0;\n        while (($
```\nclass Solution {\n\n    /**\n     * @param String $s\n     * @return Integer\n     */\n    function minimumMoves($s) {\n        $times = 0;\n        while (($start = strpos($s, "X")) !== false) {\n            $s = substr($s, $start + 3);\n            $times++;\n        }\n\n        return $times;\n    }\n}\n```
['PHP']