Sebagai tindakan preventif untuk menangkal penyebaran file virus yang disebabkan oleh kebiasaan user dalam jaringan LAN biasanya saya mengatur DNS server di mikrotik ke Nawala atau ke Norton ConnectSafe karena dua DNS tersebut mampu menangkal beberapa situs malicius dan konten asusila. Nah kasus...
Part 5 - Using Class Inheritance
Classes can inherit the methods and properties of another class using the extends keyword. For instance, to create a second class tha...
Part 4 - Magic Methods in OOP
To make the use of objects easier, PHP also provides a number of magic methods , or special methods that are called when certain common a...
Part 3 - Defining Class Methods
Methods are class-specific functions. Individual actions that an object will be able to perform are defined within the class as methods. For instance, to create methods that would set and get the value of the class property $prop1, add the following to your code: <?php class MyClas...
Part 2 - Defining Class Properties
To add data to a class, properties , or class-specific variables, are used. These work exactly like regular variables, except they're ...
Part 1 - Object-Oriented PHP for Beginners
For many PHP programmers, object-oriented programming is a frightening concept, full of complicated syntax and other roadblocks. As detailed in my book, Pro PHP and jQuery, you'll learn the concepts behind object-oriented programming (OOP), a style of coding in which related actions are grouped in...