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 String

A string is a sequence of characters, such as “Hello world!”.

A string can be any text enclosed in quotes, using either single or double quotes.

Example

$x = "Hello world!";
$y = 'Hello world!';

var_dump
($x);
echo "<br>";
var_dump($y);