c) Both (a) and (b)
Description:
There are 4 ways to specify a string literal in PHP.
- single quoted
- double quoted
- heredoc syntax
- newdoc syntax (since PHP 5.3)
We can create a string in PHP by enclosing the text in a single-quote. It is the easiest way to specify string in PHP. In PHP, we can specify string through enclosing text within double quote also. But escape sequences and variables will be interpreted using double quote PHP strings.