1 [str] => 222 [bool] => 1 ) object(test)#1 (3) { ["num"]=> int(1">
输入banner图图片脚本导航/分类

php输出字符串方法总结

  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) }