iugo
V2EX  ›  问与答

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

  •  
  •   iugo · Nov 19, 2015 · 1328 views
    This topic created in 3833 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   ·   4863 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 09:40 · PVG 17:40 · LAX 02:40 · JFK 05:40
    ♥ Do have faith in what you're doing.