PHP Classes
elePHPant
Icontem

File: commands/helloworld.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andoitz Jordan Marmolejo  >  PHP Query Terminal  >  commands/helloworld.php  >  Download  
File: commands/helloworld.php
Role: Example script
Content type: text/plain
Description: Class example for command
Class: PHP Query Terminal
Run command classes from an interactive console
Author: By
Last change:
Date: 9 months ago
Size: 242 bytes
 

Contents

Class file image Download
<?php
class helloworld extends Command{
    public function
__construct(){
       
parent::__construct();
    }
    public function
init($params){
       
$result = "Hello World!";
        if(isset(
$params[1])) $result.= " ".$params[1];
       
$this->data = $result;
    }
}
?>