News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Richard Heyes' Blog:
PHP Console Class
January 09, 2006 @ 06:51:35

On his blog today, Richard Heyes notes that he's created a new class that combines some of the most common console-script functionality into once place - Console.

Just added a new class called Console, which wraps up some common Console script related functionality. All the methods are static, and it's PHP5 only. Methods include:

  • Console::Pause()
  • Console::BooleanQuestion()
  • Console::ClearScreen()
  • Console::GetLine()
  • Console::ShowMenu()

You can grab a copy of the class here as well as an example of its usage, showing how to build a menu and have the user input their information...

0 comments voice your opinion now!
console class build menu booleanQuestion getLine clearScreen console class build menu booleanQuestion getLine clearScreen


blog comments powered by Disqus

Similar Posts

Alexey Zakhlestins' Blog: Pake: PHP5 project build system

Linux Gazette: Building a simple del.icio.us clone

CodeSnipers.com: Embarking on PHP5 Objects

PHPMac.com: Building and Installing Apache 2.2.2 and PHP 5.1.3 (or 5.1.4) on Mac OS X 10.4.6

Ivo Jansch's Blog: Mixins in PHP


Community Events

Don't see your event here?
Let us know!


interview opinion api php7 security unittest laravel5 language community introduction version podcast release example laravel framework series library voicesoftheelephpant video

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework