<?php


        class a{
            private $a="123";
            private $b="456";
            public function __toString()
            {
                // TODO: Implement __toString() method.

    return $this->a.$this->b;
    }
    }


    $a  = new a();

    echo $a;

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
  • 2021-11-27
  • 2021-11-08
猜你喜欢
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
相关资源
相似解决方案