PHP Classes

File: commands/helloworld.php

Recommend this page to a friend!
  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: Update of commands/helloworld.php
Date: 4 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;
    }
}
?>