{ } javasamplesAI. CODE. BUILD.
Advertisement

THE TUTORIAL LIBRARY

All tutorials

1,964 tutorials
PHP2008-11-23

Input Validation in PHP

One essential technique to protect your web site from users is input validation, which is an impressive term that doesn't mean much at all. The term simply means that you need to c

Read tutorial
PHP2008-11-22

__autoload() METHOD in PHP

When writing object-oriented code, it is often customary to put each class in its own source file. The advantage of this is that it's much easier to find where a class is placed, a

Read tutorial
PHP2008-11-22

__toString() METHOD in PHP

Unlike most other data types, printing the object's id will usually not be interesting to you. Also, objects often refer to data that should have print semantics—for example, it

Read tutorial
PHP2008-11-22

Interfaces in PHP

Class inheritance enables you to describe a parent-child relationship between classes. For example, you might have a base class Shape from which both Square and Circle derive. Howe

Read tutorial
PHP2008-11-22

instanceof OPERATOR in PHP

The instanceof operator was added as syntactic sugar instead of the already existing is_a() built-in function (which is now deprecated). Unlike the latter, instanceof is used like

Read tutorial
Advertisement
PHP2008-11-22

parent:: AND self:: in PHP

PHP supports two reserved class names that make it easier when writing OO applications. self:: refers to the current class and it is usually used to access static members, methods,

Read tutorial
PHP2008-11-22

Polymorphism in PHP

The subject of polymorphism is probably the most important in OOP. Using classes and inheritance makes it easy to describe a real-life situation as opposed to just a collection of

Read tutorial
PHP2008-11-22

Static Methods in PHP

Similar to static properties, PHP supports declaring methods as static. What this means is that your static methods are part of the class and are not bound to any specific object i

Read tutorial
PHP2008-11-22

Static Properties in PHP

Classes can declare properties. Each instance of the class (i.e., object) has its own copy of these properties. However, a class can also contain static properties. Unlike regular

Read tutorial
{ }

The future is yours to build.

One example today. A better developer tomorrow.

Find something to build →