本文整理匯總了PHP中test::test方法的典型用法代碼示例。如果您正苦於以下問題:PHP test::test方法的具體用法?PHP test::test怎麽用?PHP test::test使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類test
的用法示例。
在下文中一共展示了test::test方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: factory
static function factory($x)
{
if (test::$test) {
return test::$test;
} else {
test::$test = new test($x);
return test::$test;
}
}
示例2: test
<?php
class test
{
public function test()
{
return ArrayIterator::current();
}
}
$test = new test();
$test->test();
echo "Done\n";
示例3: destroy
static function destroy()
{
test::$test = NULL;
}
示例4: __construct
* Created by PhpStorm.
* User: chengt
* Date: 14-4-9
* Time: 下午5:45
*/
define('UUZU_AUTH', 2);
require_once '../../global.php';
TenYear::getInstance();
header("Content-type: text/html; charset=UTF-8");
//error_reporting (E_ALL);
//$out = TenYear::getInstance(TenYear::game_name('KFArena'))->init_kf_arena();
//var_dump($out);
class test extends TenYear
{
public function __construct()
{
parent::__construct();
TenYear::setInstance('TenYear', $this);
}
public function test()
{
$data = array("appid" => '24885', "billno" => '4BE1D6AE-5324-11E3-BC76-00163EB7F40B', "cmd" => 'check_award', "contractid" => '24885T320131118114134', "openid" => '000000000000000000000000025900A0', "payitem" => 'pkg', "pf" => 'qzone', "providetype" => '2', "step" => 2, "ts" => '1385089780', "version" => 'V3', "sig" => 'E+S6dC+hooDCtwvhnGTFIFGrfng=');
$url = "http://192.168.1.73:9001/tencentTaskMarketApi.php";
$res = Com_TencentDataUpload::send_data($data, $url, "GET");
echo $res;
// var_dump(urldecode('E%2BS6dC%2BhooDCtwvhnGTFIFGrfng%3D'));
}
}
$objTest = new test();
$objTest->test();