On Sat, September 23, 2006 5:46 pm, Rui Hirokawa wrote:
>  mb_list_encodings([int type])
>  type : MB_ENCODING_LISTS_ALL (returns encodings, alias, MIME)
>         MB_ENCODING_LISTS_ALIAS (returns alias)
>         MB_ENCODING_LISTS_MIME (returns mime)
>         MB_ENCODING_LISTS_ENTITY (returns encodings, default for

I personally would prefer this solution over proliferating function
names...

I find it easier to understand the docs and what a function does if I
don't have to flip back and forth between three functions that all do
the same thing, only different.

You could also consider making MB_ENCODING_LISTS_* powers of 2, so that:
mb_list_encodings(MB_ENCODING_LISTS_MIME | MB_ENCODING_LISTS_ENTITY)
returns the expected results.

Disclaimer:
I don't even know what these functions are listing/returning or why
you'd want them... :-)

-- 
Like Music?
http://l-i-e.com/artists.htm

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

Reply via email to