iugo
V2EX  ›  问与答

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

  •  
  •   iugo · Nov 19, 2015 · 1314 views
    This topic created in 3828 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   ·   4698 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 10:05 · PVG 18:05 · LAX 03:05 · JFK 06:05
    ♥ Do have faith in what you're doing.