public static function moveCursorTo($column, $row = null)
    {
        if ($row === null) {
            echo "\033[" . (int) $column . 'G';
        } else {
            echo "\033[" . (int) $row . ';' . (int) $column . 'H';
        }
    }
public static function moveCursorTo($column, $row = null)
    {
        if ($row === null) {
            echo "\033[" . (int) $column . 'G';
        } else {
            echo "\033[" . (int) $row . ';' . (int) $column . 'H';
        }
    }
public static function moveCursorTo ( $ column , $ row = null ) { if ( $ row === null ) { echo "\033[" . ( int ) $ column . 'G' ; } else { echo "\033[" . ( int ) $ row . ';' . ( int ) $ column . 'H' ; } }
Moves the cursor to an absolute position given as column and row by sending ANSI control code CUP or CHA to the terminal.
@param int $column 1-based column number, 1 is the left edge of the screen.
@param int|null $row 1-based row number, 1 is the top edge of the screen. if not set, will move cursor only in current line.
Moves the cursor to an absolute position given as column and row by sending ANSI control code CUP or CHA to the terminal .