107 Topics
Getting started with PHP Introduction Topic
Outputting the Value of a Variable All Versions
To build a dynamic and interactive PHP program, it is useful to output variables and their values. The PHP language allows for multiple methods of value output. This topic covers the standard methods of printing a value in PHP and where these methods can be used.
JSON PHP 5.x5.2–5.6PHP 7.x7.0–7.1
JSON (JavaScript Object Notation) is a platform and language independent way of serializing objects into plaintext. Because it is often used on web and so is PHP, there is a basic extension for working with JSON in PHP.
PDO PHP 5.x5.0–5.6PHP 7.x7.0–7.1
The PDO (PHP Data Objects) extension allows developers to connect to numerous different types of databases and execute queries against them in a uniform, object oriented manner.
Operators All Versions
Traits PHP 5.x5.4–5.6PHP 7.x7.0–7.1
Variables All Versions
Classes and Objects PHP 4.x4.0–4.4PHP 5.x5.0–5.6PHP 7.x7.0–7.1
Classes and Objects are used to to make your code more efficient and less repetitive by grouping similar tasks. A class is used to define the actions and data structure used to build objects. The objects are then built using this predefined structure.
Arrays All Versions
An array is a data structure that stores an arbitrary number of values in a single value. An array in PHP is actually an ordered map, where map is a type that associates values to keys.
Security All Versions
As the majority of websites run off PHP, application security is an important topic for PHP developers to protect their website, data, and clients. This topic covers best security practices in PHP as well as common vulnerabilities and weaknesses with example fixes in...
PHP MySQLi PHP 5.x5.0–5.6PHP 7.x7.0–7.1
The mysqli interface is an improvement (it means "MySQL Improvement extension") of the mysql interface, which was deprecated in version 5.5 and is removed in version 7.0. The mysqli extension, or as it is sometimes known, the MySQL improved extension, was developed...
Composer Program All Versions
Loops All Versions
Loops are a fundamental aspect of programming. They allow programmers to create code that repeats for some given number of repetitions, or iterations. The number of iterations can be explicit (6 iterations, for example), or continue until some condition is met...
Contributing to the PHP Manual All Versions
The PHP Manual provides both a functional reference and a language reference along with explanations of PHP's major features. The PHP Manual, unlike most languages' documentation, encourages PHP developers to add their own examples and notes to each page of the...
Cookies All Versions
Types All Versions
Dependency Injection All Versions
Dependency Injection (DI) is a fancy term for "passing things in". All it really means is passing the dependencies of an object via the constructor and / or setters instead of creating them upon object creation inside the object. Dependency Injection might also...
Command Line Interface (CLI) All Versions
Password Hashing Functions PHP 5.x5.5–5.6PHP 7.x7.0–7.1
As more secure web services avoid storing passwords in plain text format, languages such as PHP provide various (undecryptable) hash functions to support the more secure industry standard. This topic provides documentation for proper hashing with PHP.
Functional Programming All Versions
PHP's functional programming relies on functions. Functions in PHP provide organized, reusable code to perform a set of actions. Functions simplify the coding process, prevent redundant logic, and make code easier to follow. This topic describes the declaration and...