Skip to main content

21 docs tagged with "php"

View All Tags

MongoDB - PHP

Learn how to use MongoDB with PHP including connection setup, creating collections, inserting, updating, finding, and deleting documents.

PHP - Boolean

In PHP, a boolean (bool) is a built-in scalar data type used to express truth values, which can be either True or False. Boolean literals use the constants True or False, which are case-insensitive.

PHP - Data Types

The term "data types" refers to the classification of data into distinct categories. PHP has a total of eight data types that we use to construct our variables:

PHP - Features

PHP (Hypertext Preprocessor) is an open-source server-side scripting language primarily used for web development. Let's explore some of its key features:

PHP - History

PHP started as a small open-source project that gradually evolved as more people discovered its usefulness. Here's a brief overview of its history and major milestones:

PHP - Home

Learn about PHP, an open-source scripting language widely used for web development, server-side scripting, and building dynamic web applications.

PHP - Installation

You can start learning the basics of programming in PHP with the help of any of the online PHP compilers freely available on the Internet. This will help in getting acquainted with the features of PHP without installing it on your computer. Later on, install a full-fledged PHP environment on your local machine.

PHP - Integers

In PHP, an integer (int) is a built-in scalar data type representing whole numbers without decimal points. Integers can be represented in decimal (base 10), hexadecimal (base 16), octal (base 8), or binary (base 2) notation.

PHP - Introduction

PHP started out as a small open-source project that evolved as more and more people found out how useful it was. Rasmus Lerdorf released the first version of PHP way back in 1994. Initially, PHP was supposed to be an abbreviation for "Personal Home Page", but it now stands for the recursive initialism "PHP: Hypertext Preprocessor".

PHP - Strings

A string in PHP is a sequence of characters, represented as either single-quoted or double-quoted strings. PHP treats strings as arrays of bytes, where each character is a byte. It's important to note that PHP does not offer native Unicode support and supports a 256-character set.

PHP - Syntax

The syntax rules of PHP are similar to the C language. PHP is primarily a server-side scripting language used for web development. Let's dive into the details of PHP syntax.

PHP - Type Casting

The term "Type Casting" refers to the conversion of one type of data to another. Since PHP is a weakly typed language, the parser coerces certain data types into others while performing certain operations. For example, a string containing digits is converted to an integer if it is one of the operands involved in an addition operation.

PHP - Type Juggling

PHP is known as a dynamically typed language. The type of a variable in PHP changes dynamically based on the value assigned to it. This feature is called "type juggling" in PHP.