Tag Archive: variables

PHP Lesson 3: Variables and Constants

Variables Variables are containers, they contain data. PHP is a loosely typed language, and thus the variable can contain any type of data, PHP will change the type of the variable implicitly, depending on the operation being performed on it. This is in strong contrast with strongly typed languages, such as Java, or C++, ...

Continue Reading »

PHP Lesson 2: Data types

Today's PHP lesson is about data types. Although PHP can work with many different data types, we divide them in two different categories: scalar data and composite data. Scalar data Scalar data can hold only one value at a time. PHP knows four different types of scalar data: Boolean: possible values are TRUE or FALSE [ad]int: can ...

Continue Reading »

Bad Behavior has blocked 872 access attempts in the last 7 days.