iugo
V2EX  ›  问与答

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

  •  
  •   iugo · Nov 19, 2015 · 1408 views
    This topic created in 3888 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   ·   4132 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 05:23 · PVG 13:23 · LAX 22:23 · JFK 01:23
    ♥ Do have faith in what you're doing.