public static function varExport( $var, $indent = 0, $dontIndentFirstLine = true )
    {

        $export = var_export( $var, true );

        // array ( => array (
        $export = preg_replace( '/^array \\(/', 'array(', $export );

        // UPPERCASE null(s) seem to bother me for some reason. I've no idea why.
        if( $export === 'NULL' ) {
            $export = 'null';
        }

        //
        // change the default indent from 2 to 4
        $export = str_replace( '  ', '    ', $export );

        $lines = explode( "\n", $export );

        $i = $dontIndentFirstLine ? 1 : 0;
        $indent = \str_repeat( ' ', $indent );
        for( ; $i<count($lines); $i++) {
            $lines[$i] = $indent.$lines[$i];
        }

        return implode( "\n", $lines );

    }