本文整理匯總了PHP中Test::hello方法的典型用法代碼示例。如果您正苦於以下問題:PHP Test::hello方法的具體用法?PHP Test::hello怎麽用?PHP Test::hello使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Test
的用法示例。
在下文中一共展示了Test::hello方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: hello2
public function hello2()
{
$this->hello();
// Check if $this mean also inheritance methods
parent::hello();
// Check if it work in spite of it is not static method
}
示例2: dirname
<?php
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'source6-includes.php';
class Test
{
use A, B {
B::hello insteadof A;
A::hello as helloA;
}
}
$test = new Test();
$test->hello();
$test->helloA();
示例3: exec
<?php
require 'vendor/autoload.php';
// $host = "localhost";
// $db_name = "planner";
// $username = "root";
// $password = "";
// try{
// $conn = new PDO("mysql:host=" . $host . ";dbname=" . $db_name, $username, $password);
// echo "connection established";
// }catch(PDOException $exception){
// echo "Connection error: " . $exception->getMessage();
// }
/*if(isset($_GET['cmd'])){
exec('git remote -v', $output, $return);
foreach ($output as $value) {
echo $value ."\n";
}
}else{
echo "No Command Issued";
} */
//sendmail('kmaina@clemcreativity.com','Kevin Maina','Test','Just testing');
//sms('+254724844946','The Planner');
//echo isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : 'not there';
//print_r($_SESSION);
$db = new Database();
$test = new Test($db->conn);
echo $test->hello();
示例4: AutoLoadAction
public function AutoLoadAction()
{
$t = new Test();
echo $t->hello();
}