Skip to content

Instantly share code, notes, and snippets.

@roland-d
Last active October 27, 2017 08:09
Show Gist options
  • Save roland-d/763c9592fc080c316900fbf6389fa4ba to your computer and use it in GitHub Desktop.
Save roland-d/763c9592fc080c316900fbf6389fa4ba to your computer and use it in GitHub Desktop.
Fancy print_r
?>
<pre><?php
echo __FILE__ . '::' . __LINE__ . ':: ';
echo ': ';
echo '<div style="font-size: 1.5em;">';
print_r($);
echo '</div>';
?></pre><?php
@babsgosgens
Copy link

babsgosgens commented Oct 27, 2017

Atom snippets snippet:

'.php':
    'Fancy print':
        'prefix': 'print'
        'body': """
            ?>
                <pre>
                    <?php
                    echo __FILE__ . '::' . __LINE__ . ':: ';
                    echo ': ';
                    echo '<div style="font-size: 1.1em;">';
                    print_r($1);
                    echo '</div>';
                    ?>
                </pre>
            <?php
            """

@babsgosgens
Copy link

1.1em is large enough for me…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment