PHP Defining String Variables Example

This page shows three ways of defining variables that hold strings in PHP.


this is a string defined using single quotes

this is a string defined using double quotes

this is a string defined using heredoc syntax