V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iugo
V2EX  ›  问与答

PHP 中的量會自己變化?是我沒搞懂 this 嗎?

  •  
  •   iugo · Nov 19, 2015 · 1302 views
    This topic created in 3824 days ago, the information mentioned may be changed or developed.
    代碼:
    ```
    $code = $this->json()->ret;

    var_dump($this->json());
    var_dump($this->json()->ret);
    var_dump($code);
    ```

    輸出:
    `object(stdClass)#2 (1) { ["ret"]=> string(3) "205" } string(3) "205" string(1) "0"`

    請指教。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1540 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 16:50 · PVG 00:50 · LAX 09:50 · JFK 12:50
    ♥ Do have faith in what you're doing.