Mailinglisten-Archive |
Sebastian Mendel schrieb: > Michael Borchers schrieb: >> bastel grad an ner ebayschnittstelle rum, >> folgende formatierung geht: >> if($buyer->getShippingAddressName() != "") >> >> diese aber nicht, sprich parse error: >> if(!empty($buyer->getShippingAddressName()) == true) >> >> darf nich, soll nich, muss nich?! > > kann nicht: > > "Because this is a language construct and not a function, it cannot be > called using variable functions" oh, falsches quote: "empty() only checks variables as anything else will result in a parse error. In other words, the following will not work: empty(trim($name))." > http://php.net/empty -- Sebastian Mendel www.sebastianmendel.de
php::bar PHP Wiki - Listenarchive