PHP Syntax Datatypes Scalar String

 

- Info:

- String datatype represents sequence of characters treated as a contiguous group.

- Strings are delimited by single or double quotes, or by "String Interpolation".

- PHP treats strings as arrays allowing for specific characters to be accessed via array offset notation:

 

- Example:

- Create PHP Console Application Test.php.

 

Test.php

<?php

"PHP is a great language"

"whoop-de-do"

'*9subway\n'

"123$%^789"

?>