Make var_dump look pretty

后端 未结 14 2467
忘掉有多难
忘掉有多难 2020-12-02 04:23

I have a simple $_GET[] query var set for showing testing data when pulling down queries from the DB.


  <         


        
14条回答
  •  离开以前
    2020-12-02 04:59

    Here's an alternative, actively maintained open source var_dump on steroids:

    https://github.com/kint-php/kint

    It works with zero set up and has more features than Xdebug's var_dump.

    Example which bypasses the dumped object size limit on the fly with Kint:

         require 'kint.phar';
         +d( $variable ); // append `+` to the dump call
    

    Here's a screenshot:

    kint

提交回复
热议问题