note 69385 added to function.readline

From: Date: Mon, 04 Sep 2006 12:44:18 +0000
Subject: note 69385 added to function.readline
Groups: php.notes 
Request: Send a blank email to php-notes+get-116655@lists.php.net to get a copy of this message
To haukew at gmail dot com: readline provides more features than reading a single line of input ... your example misses line editing and history. If you don't need that, use something as simple as this: function readline( $prompt = '' ) { echo $prompt; return rtrim( fgets( STDIN ), "\n" ); } ---- Server IP: 212.124.37.9 Probable Submitter: 84.188.130.64 ---- Manual Page -- http://www.php.net/manual/en/function.readline.php Edit -- https://master.php.net/note/edit/69385 Del: integrated -- https://master.php.net/note/delete/69385/integrated Del: useless -- https://master.php.net/note/delete/69385/useless Del: bad code -- https://master.php.net/note/delete/69385/bad+code Del: spam -- https://master.php.net/note/delete/69385/spam Del: non-english -- https://master.php.net/note/delete/69385/non-english Del: in docs -- https://master.php.net/note/delete/69385/in+docs Del: other reasons-- https://master.php.net/note/delete/69385 Reject -- https://master.php.net/note/reject/69385 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116655) next »