Standard Data Types

A PHP Scrapbook while learning PHP
Post Reply
Boardtalk
Site Admin
Posts: 21
Joined: Wed Feb 21, 2018 9:46 pm
Give a date?: 18 Jun 2003

Standard Data Types

Post by Boardtalk »

The eight standard data types in PHP

Type
Boolean - True or False
Integer - A whole number e.g. 9
Float or double - A floating-point number e.g. 5.432
String - A collection of characters e.g. “hello”
Object - An instance of class
Array - An ordered set of keys and values
Resource - Reference to a third-party resource e.g. a database
Null - An uninitialized variable

Post Reply