Tag

PHP

PHP Int

PHP Int is a numerical value that can be assigned to the PHP variable. This means a number from the set -3, -2, -1, 0, 1, 2, 3. In the following few lines, I will specify the PHP integer types which can be set in decimal, octal, hexadecimal, and binary. The int word refers to

PHP Data Types

In this article, you will learn how to use the PHP data types. Also, I will explain how to cast these types into other data types. And how to use PHP code to get the type of the PHP variable values. Before getting started, we just need to focus on the meaning of the PHP

PHP String

PHP string is a list of characters that are located between single or double quotes. The max of characters should not be over 256 characters. PHP does not support the native Unicode. The string can be double-quotes or single-quotes. In this tutorial, you will learn how to use all types of PHP strings. Anyway, the

PHP Float

PHP float refers to the point in the numbers or numbers that contain a decimal point. In another word, we can name it “double” or “real numbers”. PHP uses the float keyword with the variable name to define the decimal number. The size of PHP float is depending on the platforms, usually, the maximum float

PHP Boolean

PHP Bool or PHP Boolean refers to the value that is already assigned to the variable. It can be true or false values. And we are using it to detect the coming data, check calculation values or detect variable values, The important thing is it should give us a true or false value. The boolean

PHP Array

PHP array is a list or map that contains multiple values grouped by array key. It may be including integer, string, boolean, or whatever data type, the key can be string or numeral index. The PHP array can only have a value without keys but behind the scene, it is already indexing with numerals starting

PHP Object

The PHP object is an instance from the PHP class or the main data structure that is already been created by the PHP class. It can be assigned to a variable or called with $this that already refers to an individual object. In another word, the PHP object is an instance from a kind of

PHP Intro

In this tutorial, you will learn what PHP is, and how to write your first PHP program with this programming language. Also, I will expose the phases of the Zend Engine, especially the PHP lexical token with an example. On the other hand, you will learn also the differences between – The interpreter and the

PHP Resource

In this tutorial, I will explain what does mean the PHP resource and we are going to cover all PHP examples regarding this concept to be easily understandable. Anyway, the PHP resource is referring to all external accesses which are all external resources that have information or data needed to be manipulated through the main

Remove the Last Char

In this article, you will learn how to use PHP to remove the last character from a string. Also, you will be able to replace it with another char using some of the PHP predefined functions such as substr_replace and substr. The PHP string is a list of characters quotes with single or double quotations