Re: RFC: about mb_list_encoding() /mb_list_encodings_alias_names( ), mb_list_mime_names( )

From: Date: Thu, 28 Sep 2006 17:19:20 +0000
Subject: Re: RFC: about mb_list_encoding() /mb_list_encodings_alias_names( ), mb_list_mime_names( )
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-25867@lists.php.net to get a copy of this message
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

« previous php.internals (#25867) next »