int(1) ["str"]=> string">
当前位置:Gxlcms > PHP教程 > php输出字符串方法总结

php输出字符串方法总结

时间:2021-07-01 10:21:17 帮助过:3人阅读

  1. $v = new test();
  2. print_r($v);
  3. var_dump($v);
  4. class test {
  5. public $num = 1;
  6. public $str = "222";
  7. public $bln = true;
  8. function test() {
  9. global $num;
  10. }
  11. }

结果为: test object ( [num] => 1 [str] => 222 [bool] => 1 ) object(test)#1 (3) { ["num"]=> int(1) ["str"]=> string(3) "222" ["bool"]=> bool(true) }

人气教程排行