On Wed, Sep 19, 2012 at 9:16 AM, Lars Strojny <l...@strojny.net> wrote:

> There seems to be a need for a procedural API. As their is one, let’s do it 
> similar to how MySQLi etc. does it and use a context resource:
>
> $ctx = escape_context_create('UTF-8');
> $str = escape_html_attr($ctx, $str);

why bother with that? it's called function parameters. (and even
better, named parameters if PHP ever implemented those... :))

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

Reply via email to