Re: Coding Convention for returned variables

From: Date: Fri, 07 Sep 2001 23:54:31 +0000
Subject: Re: Coding Convention for returned variables
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1840@lists.php.net to get a copy of this message
Quoting Richard Heyes <php@heyes-computing.net>: > The mime class I'm working on currently returns an object. Do the coding > conventions also apply to this object that is returned? ie. If I set a > variable, does it have to be camel notation style? If it has a class, then yes. If it's classless (stdClass), then it's basically a struct or an associative array, and I'm inclined to say you can do what you like with it. There is something to be said for consistency, though. -chuck -- Charles Hagenbuch, <chuck@horde.org> Some fallen angels have their good reasons.

« previous php.pear.dev (#1840) next »