In PHP, a string is simply a group of characters.
They can contain:-
When you assign a string to a variable (or) echo the string out to the browser, you have to mark the start and end of the string.
The ways of doing this are:
The two methods looks similar but they are slightly different. Look at the following codes:-
<html> <head><title>quotes</title></head><body>
<?php $name = "Sally"; echo "My name is $name"; echo "<br>"; echo 'My name is $name'; ?>