當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。