Able to see a variable in print_r()'s output, but not sure how to access it in code

后端 未结 9 842

I googled, installed Devel, Drupal for Firebug, but I can\'t find it.

I found what I want, I know where it is; I just don\'t know how to g

9条回答
  •  说谎
    说谎 (楼主)
    2020-11-22 03:01

    Let me summarize up

    print_r($data); => Traditional view of printing array.
    
    var_dump($data); => Not so much cleaned view , gives you everything but in very suffocated manner
    
    print "
    "; print_r($data); => A cleaned view but will not get   data types information.
    
    dpm($data); => It gives you everything, but you need to have installed devel.
    

提交回复
热议问题