On Tue, Mar 22, 2011 at 11:35 PM, Lixin Yu <[email protected]> wrote:
> > So, is 'return null' a good/bad practice in php? > If you return null consistently as a "none" value, it's not a bad one. If you're inconsistent about it, or if you use it in places where it wouldn't make much sense, it would be a bad one. Did the book you read give any reasons other than clarity for returning null being considered a bad practice? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
