note 48515 added to language.oop
| From: | CopyNinja at osu1 dot php dot net | Date: | Mon, 27 Dec 2004 23:48:24 +0000 |
| Subject: | note 48515 added to language.oop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82379@lists.php.net to get a copy of this message | ||
You should ALWAYS use OOP-based names for your classes.
People that uses a class named "foo" is doing it the wrong way.
---
Wrong way to do it:
# class foobar { ... } // Very bad!
# class foo_bar { ... } // A bit better, but not OK!
# class fooBar { ... } // Getting better, but still, NO!
You should name your classes like this:
# class FooBar { ... } // YEAH! Now you get it ;-)
----
Manual Page -- http://www.php.net/manual/en/language.oop.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48515
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48515&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48515&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48515&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48515&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48515&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48515&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48515&report=yes
Search -- http://master.php.net/manage/user-notes.php