Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Use a backslash as such</p> <pre><code>"From time to \"time\""; </code></pre> <p>Backslashes are used in PHP to escape special characters within quotes. As PHP does not distinguish between strings and characters, you could also use this</p> <pre><code>'From time to "time"'; </code></pre> <p>The difference between single and double quotes is that double quotes allows for string interpolation, meaning that you can reference variables inline in the string and their values will be evaluated in the string like such</p> <pre><code>$name = 'Chris'; $greeting = "Hello my name is $name"; //equals "Hello my name is Chris" </code></pre> <p>As per your last edit of your question I think the easiest thing you may be able to do that this point is to use a 'heredoc.' They aren't commonly used and honestly I wouldn't normally recommend it but if you want a fast way to get this wall of text in to a single string. The syntax can be found here: <a href="http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc" rel="noreferrer">http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc</a> and here is an example:</p> <pre><code>$someVar = "hello"; $someOtherVar = "goodbye"; $heredoc = &lt;&lt;&lt;term This is a long line of text that include variables such as $someVar and additionally some other variable $someOtherVar. It also supports having 'single quotes' and "double quotes" without terminating the string itself. heredocs have additional functionality that most likely falls outside the scope of what you aim to accomplish. term; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload