Heredoc and nowdoc are the methods to define the string in PHP in different ways.
* Heredoc process the $variable
and special character while nowdoc doesn't do the same.
* Heredoc string uses double quotes " "
while nowdoc string uses single quote ' '
* Parsing is done in heredoc but not in nowdoc.