News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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!
php console class build menu booleanQuestion getLine clearScreen php console class build menu booleanQuestion getLine clearScreen



Similar Posts

Chris Shiflett\'s Blog: Pro PHP Podcast

Justin Silverton\'s Blog: PHP Security Mistakes - Part 2

CodeIgniter Blog: CodeIgniter Community Voice - Generating PDF files using CodeIgniter

HowToForge.com: Running Apache2 With PHP5 And PHP4 At The Same Time

Jim Plush\'s Blog: Cyclomatic Complexity for the Test Driven PHP\'er


Community Events









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


mysql developer code releases cakephp release book framework zend PHP5 ajax job conference zendframework package example PEAR security application database

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