Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First of all... If you're using double-quotes <code>"</code> you can do just this:</p> <pre><code>echo "This is the variable 1: $variable1 This is the variable 2: $variable2 This is the variable 3: $variable3 This is the variable 4: $variable4 This is the variable 5: $variable5 This is the variable 6: $variable6"; </code></pre> <p>In case you want to use special char next to var or array you can do this:</p> <pre><code>echo "This is the variable 1: {$variable1} This is the variable 2: {$variable2} This is the variable 3: {$variable3} This is the variable 4: {$variable4} This is the variable 5: {$variable5} This is the variable 6: {$variable6}"; </code></pre> <p>Using <code>"</code> is slower than <code>'</code> because interpreter looking for variables inside <code>""</code> echo. Single quote solution looks like one of answers here:</p> <pre><code>echo 'This is the variable 1: ' . $variable1 . ' This is the variable 2: ' . $variable2 . ' This is the variable 3: ' . $variable3 . ' This is the variable 4: ' . $variable4 . ' This is the variable 5: ' . $variable5 . ' This is the variable 6: ' . $variable6 ; </code></pre> <p>Almost forgot about something... Not many people use it and it's much more readable than above example:</p> <pre><code>echo 'This is the variable 1: '.$variable1, 'This is the variable 2: '.$variable2, 'This is the variable 3: '.$variable3, 'This is the variable 4: '.$variable4, 'This is the variable 5: '.$variable5, 'This is the variable 6: '.$variable6; </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. This table or related slice is empty.
    1. VO
      singulars
      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