Wednesday, August 9, 2017

What is PHP String

PHP String

A string is a sequence of characters, like "Hello world!".
A string can be any text inside quotes.

Example

<?php
$x = "Hello world!";
$y = 'Hello world!';

echo $x;
echo "<br>";
echo $y;
?>