I am trying to create a php variable that has three levels of nested quotes. How do I make a third level around "tackEvent"
, "downloads"
, "all"
, and "nofilter"
? The double quotes that I have there are not working.
$outputList .= "<a href=files/".$content_file ." onClick='_gaq.push (["_trackEvent", "downloads", "all", "nofilter"]);' >" . $content_name . "</a>";
The triple quotation is a nice way to be able to include other types of quotation within your string without having to use escape characters. For example: print("He said \"my name's John\"") That example requires escape characters \" to use double quote marks.
Using quotes within quotes As you can see in the example above, the closing quotations almost look like three marks. That's what it looks like when you have a single quote next to a double quote. It might seem odd, but it's grammatically correct.
Direct quotations involve incorporating another person's exact words into your own writing. Quotation marks always come in pairs. Do not open a quotation and fail to close it at the end of the quoted material. Capitalize the first letter of a direct quote when the quoted material is a complete sentence.
From here:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With