Announcement

Collapse
No announcement yet.

PHP Data Types Simplified

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP Data Types Simplified

    Introduction
    When you declare a variable in PHP, you can assign a number or a string to the variable. In PHP, during declaration of a variable, you do not have to indicate the type of variable. In PHP, a variable can take any data type during initialization. Despite all that, PHP does have data types, officially. In this article I introduce you to a tutorial series on PHP data types.

    Prerequisite
    You need basic knowledge in PHP in order to understand the tutorial series.

    Scalar Data Types
    In PHP, a scalar data type is an integer or a float or a string or a Boolean value. Details in the tutorial series!

    String Data Types
    A string is a series of characters. A string literal can be specified in 4 different ways, but we shall look only at two of the ways: single quoted, double quoted heredoc. Details in the tutorial series!

    Null and Void Data Types
    Null means nothing. Void means empty. More on the similarities and differences of these two data types in the tutorial series!

    Resource Data Type
    This is a data type, which other programs do not have. Its definition is simple. A resource is a reference to an external resource to the computer system unit. It can be a reference to a file, or to a hard disk, etc. More in the series!

    Pseudo Data Types
    Pseudo data types are data types that are used in documentation for illustration. They are not typed in code. More in the series!

    As you go higher in programming, you should know some of this kind of things (data types). It makes you a mature programmer, as you understand what you are doing. It is advisable to learn a language to its useful limits, and so, making yourself a professional in that language.

    Now, do you have to carry out the studies on your own? No. That is not necessary, because I have already prepared a tutorial series for you on the subject. The series has been written in a step-by-step fashion. The code samples are well formatted with good indentation, making readability very easy. There are no missing special characters, as you would find in other sites. The links to the different parts of the series are easily accessible. Click the following link to start the series:

    PHP Data Types Simplified

    Chrys
Working...
X