answersLogoWhite

0


Best Answer

You can use single quotes

$variable = 'string';

You can use double quotes

$variable = "string";

You can use the Heredoc method

$variable = <<<EOT

Very

Long

String

EOT;

And you can use the Nowdoc method (after PHP 5.3.0)

$variable = <<<'EOT'

Very

Long

String

EOT;

User Avatar

Wiki User

6y ago
This answer is:
User Avatar
More answers
User Avatar

Anonymous

Lvl 1
3y ago

true

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: In PHP you can use both single quotes ( ' ' ) and double quotes ( ) for strings?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Basic Math
Related questions

Can you use both single quotes and double quotes for strings in php?

Yes, you can use both single quotes (' ') and double quotes (&quot; &quot;) for defining strings in PHP. However, the choice between single and double quotes depends on whether you need to include variables or special characters within the string. Single quotes treat everything as a literal string, while double quotes allow for variable interpolation and escape sequences.


How do you cite a paragraph that has both quotes and paraphrasing all from the same source?

To cite a paragraph with both quotes and paraphrasing from the same source, include an in-text citation after each specific quote or paraphrase. Use the author's last name, year of publication, and page number if available. Additionally, include a full citation of the source in your reference list at the end of your document.


How do you play double-stops on a violin?

place the bow on both strings at once and then bow as usual


How do you identify single jersey and double jersey?

in single jersey fabric both side are not same but in double jersey both side are same


Is a normal french horn a single or double?

Both versions are considered normal. Most student models are single, and most professionals are double.


What does 3M produce?

sticky tape, both single- and double-sided


Is the J C Higgins model 88 both single and double action?

Both! You can cock the hammer and pull trigger for single action. Or, for double action just pull the trigger straight through.


Do bass guitars have both notes and chords?

Absolutely! The first four strings match up with the first four strings on a regular guitar so any chords that just use the first 4 strings can be carried over. And of course you can just play single notes as well.


What type of bond does diamond graphite and buckminsterfullerene have - Single Double or Triple?

Diamond and Graphite both have single covalent bonds whereas Buckminsterfullerene has double covalent bonds.


Is a double bed the same length as a single?

Yes. Both are 75 inches long


Does the ukulele have the same four strings as the bass guitar?

The double bass is much like the string bass, but it is also known as an upright bass, and commonly used in symphonies. It can be played with fingers, (pizzicato) but is usually played with a bow, like a violin. It looks like a big violin, and is played with the bottom of it, (opposite of where you tune the strings) at your feet, and the top around where your head is, while you are sitting down.


What is a double down in monster truck shows?

A double down is when a single driver wins both the racing and freestyle competition for the night.