Object Oriented PHP CS380 1 Why use classes and

Object Oriented PHP CS380 1 Why use classes and
1 / 1
Object Oriented PHP CS380 1 Why use classes and - slide 1 of 11 Object Oriented PHP CS380 1 Why use classes and - slide 2 of 11 Object Oriented PHP CS380 1 Why use classes and - slide 3 of 11 Object Oriented PHP CS380 1 Why use classes and - slide 4 of 11 Object Oriented PHP CS380 1 Why use classes and - slide 5 of 11 Object Oriented PHP CS380 1 Why use classes and - slide 6 of 11 Object Oriented PHP CS380 1 Why use classes and - slide 7 of 11 Object Oriented PHP CS380 1 Why use classes and - slide 8 of 11 Object Oriented PHP CS380 1 Why use classes and - slide 9 of 11 Object Oriented PHP CS380 1 Why use classes and - slide 10 of 11 Object Oriented PHP CS380 1 Why use classes and - slide 11 of 11
Object Oriented PHP CS380 1 Why use classes and objects? PHP is a primarily procedural language small programs are easily written without adding any classes or objects larger programs, however, become cluttered with so many disorganized

Related Topics

Download this presentation From Below

"Object Oriented PHP CS380 1 Why use classes and" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
Object Oriented PHP CS380 1<br>
02
Why use classes and objects? PHP is a primarily procedural language
small programs are easily written without adding any classes or objects
larger programs, however, become cluttered with so many disorganized functions
grouping related data and behavior into objects helps manage size and complexity CS380 2<br>
03
Constructing and using objects 3 # construct an object
$name = new ClassName(parameters);
# access an object's field (if the field is public)
$name->fieldName
# call an object's method
$name->methodName(parameters); PHP the above code unzips a file
test whether a class is installed with class_exists CS380 $zip = new ZipArchive();
$zip->open("moviefiles.zip");
$zip->extractTo("images/");
$zip->close(); PHP<br>