Curriculum
Course: PHP Basic
Login

Curriculum

PHP Basic

PHP Install

0/1

PHP Casting

0/1

PHP Constants

0/1

PHP Magic Constants

0/1

PHP Operators

0/1

PHP Reference

0/276
Text lesson

PHP Array

An array holds multiple values within a single variable.

In the following example, $cars is an array. The PHP var_dump() function will return its data type and value

Example

$cars = array("Volvo","BMW","Toyota");
var_dump($cars);