当前位置: 首页>>代码示例>>PHP>>正文


PHP test::test方法代码示例

本文整理汇总了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;
     }
 }
开发者ID:lihuibin,项目名称:jphp,代码行数:9,代码来源:factory_and_singleton_001.php

示例2: test

<?php

class test
{
    public function test()
    {
        return ArrayIterator::current();
    }
}
$test = new test();
$test->test();
echo "Done\n";
开发者ID:badlamer,项目名称:hhvm,代码行数:12,代码来源:bug46381.php

示例3: destroy

 static function destroy()
 {
     test::$test = NULL;
 }
开发者ID:dw4dev,项目名称:Phalanger,代码行数:4,代码来源:factory_and_singleton_002.php

示例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();
开发者ID:bluefan,项目名称:phpsource,代码行数:30,代码来源:test.php


注:本文中的test::test方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。