PHP Classes

File: example/src/foo/Foo.php

Recommend this page to a friend!
  Classes of Samuel Adeshina  >  Plug Loader  >  example/src/foo/Foo.php  >  Download  
File: example/src/foo/Foo.php
Role: Example script
Content type: text/plain
Description: Example
Class: Plug Loader
Autoload classes based on PSR-4 recommendation
Author: By
Last change:
Date: 4 years ago
Size: 478 bytes
 

Contents

Class file image Download
<?php
   
namespace Example\Foo;
   
    class
Foo {
        public function
__construct(){

        }

        public function
getMessage(){
           
$messages = [
                        
"Check out my WhatsBulk Chat API!",
                        
"Did you know facebook owns Whatsapp?",
                        
"Did you know PHP is a programming language?",
                        
"Do you know Quora exists?"
                       
];

           
$rand = array_rand($messages);
            return
$messages[$rand];
        }

        public static function
log($message){
            \
Example\Faz\Faz::alert($message);
        }
    }
?>


For more information send a message to info at phpclasses dot org.