本文整理汇总了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();