Hi,

On Mon, 2011-01-24 at 13:26 -0500, Michael Morris wrote:
> Anyway, var_export takes 2 arguments - the expression to be converted and
> whether to return or echo it.  I'd like to add a third, whether to use
> spaces (default) or tabs for indentation

While I'm not sure that's really needed:
Why not a string parameter - then one could choose between 2 or 4 spaces
and tabs.
As var_Export is using smart_str this should be quite simple change to
do :-)

> For backwards compatibility null would mean uses spaces, and use 2 per
> indentation. If set to true a tab character would be used.

For BC the the key point is if it is omitted, since not passing a
parameter is different from passing NULL (or any other value)

johannes



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to