Never mix the case in filenames. It creates ugly application structure. Go
ahead with all small letters.
Like classes, we will save any interface as interface.name.php, Abstract
class as abstract.name.php, and Final class as final.name.php.
We will always use Camel case while naming our classes. And that means
the first letters of the major part is always a capital letter and the rest are
small letter. For example a class named "arrayobject" will be more readable if
we write ArrayObject.
While writing the name of properties or class variables, we will follow the
same convention.
While writing the name of a method, we will start with a small letter and
then the rest are camel case. For example, a method to send an email could be
named as sendEmail.
Well, there is no more conventions used in this book.
Summary
In this chapter we learned about the object oriented programming and how it fits
in with PHP. We have also learned some benefits over procedural and functional
programming. However, we haven't gone through the details of OO language
in PHP. In the next chapter we will learn more about objects and their methods
and attributes, specifically creating objects, extending its features, and interacting
between them.
Pages:
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38