print_r ( mixed expression [, bool return])
如果想捕捉 print_r() 的输出,可使用 return 参数。若此参数设为 TRUE,print_r() 将不打印结果(此为默认动作),而是返回其输出。

解决方案 »

  1.   

    那 echo 可以不可以呢?
    我就是得不到 $start_time['month'] 这个值,怎么把它显示出来?
      

  2.   

    print_r ($start_time['month']);//4有结果呀
      

  3.   

    默认为true,也许就意味着不打印吧。
      

  4.   

    zairwolfi(君子兰) 可以QQ吗?
      

  5.   

    print_r ($start_time['month']);//4
    print $start_time['month'];    //4
    echo $start_time['month'];     //4
      

  6.   

    输出值用echo和print就可以了吧一般我输出数组查看才用print_r
      

  7.   

    echo 和 print 都试过了,就是显示不出来,没办法:(