Hi, Am Samstag, den 07.10.2006, 18:56 +0200 schrieb Ralf Eggert: [...] > is there a reason why the functions Zend_Config::asArray() and > Zend_Db_Row::toArray() are not called the same? > > Both functions return an array. So why not call them the same, either > toArray() or asArray()?
I would prefer asArray() because I hope that someday PHP will provide
the __toString() magic function for every type, means __toArray(),
__toInteger(), __toFloat() and so on. Thus, having __toString() it seems
logically to call a function, which converts Foo to an Array, toArray().
Greets, Lars
--
"Kriterium des Wahren ist nicht seine unmittelbare
Kommunizierbarkeit an jedermann"
-- Theodor Wiesengrund Adorno, aus: »Negative Dialektik«
name: Lars H. Strojny web: http://strojny.net
street: Engelsstraße 23 blog: http://usrportage.de
city: D-51103 Köln mail/jabber: [EMAIL PROTECTED]
f-print: 1FD5 D8EE D996 8E3E 1417 328A 240F 17EB 0263 AC07
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
