Schachteln mit drei Ebenen von Zitaten
Ich versuche, erstellen Sie eine php-variable, die hat drei Ebenen an verschachtelten Zitaten. Wie mache ich eine Dritte Ebene um "tackEvent"
"downloads"
"all"
und "nofilter"
? Die Anführungszeichen, dass ich dort nicht arbeiten.
$outputList .= "<a href=files/".$content_file ." onClick='_gaq.push
(["_trackEvent", "downloads", "all", "nofilter"]);' >" . $content_name .
"</a>";
InformationsquelleAutor der Frage JSW189 | 2011-09-30
Du musst angemeldet sein, um einen Kommentar abzugeben.
Vom hier:
entgangen äußeren Anführungszeichen)
InformationsquelleAutor der Antwort Nick Brunt
Aus der Handbuch:
Dies gilt für strings in doppelten Anführungszeichen als gut.
InformationsquelleAutor der Antwort Jeff Lambert
"
'
\"
"
InformationsquelleAutor der Antwort Joaquim Neto
Dies ist mit der heredoc-syntax.
InformationsquelleAutor der Antwort FtDRbwLXw6