src/ReadlineTemplate/DataReader.php
/**
     * Reads aline from the command line. If readline is not installed it will try it best to read a line anyways
     * @param string $prompt The prompt which indecates what data the user should enter
     * @return string Returns a line ret from the command line
     */
Reads aline from the command line. If readline is not installed it will try it best to read a line anyways
@param string $prompt The prompt which indecates what data the user should enter
@return string Returns a line ret from the command line
Reads aline from the command line . If readline is not installed it will try it best to read a line anyways @param string $prompt The prompt which indecates what data the user should enter @return string Returns a line ret from the command line
protected function readline($prompt) {
        if (!function_exists("readline")) {
            echo $prompt;
            return rtrim(fgets(STDIN), "\r\n");
        } else {
            return readline($prompt);
        }
    }
protected function readline ( $ prompt ) { if ( ! function_exists ( " readline " ) ) { echo $ prompt ; return rtrim ( fgets ( STDIN ) , " \r \n " ) ; } else { return readline ( $ prompt ) ; } }
Reads aline from the command line.
Reads aline from the command line .