Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP - Echo doesn't print some values
    primarykey
    data
    text
    <p>i've a strange problem in PHP. I'm doing a parsing of a webpage, and i get the correct values i'm looking for. The problem is that if i want to print them, all together into an "echo", it prints only certain values, while the others are not printed. I make you an example, this is NOT my real code because i can't past here my source (it's to long and i can make a shorter example).</p> <pre><code>&lt;?php $variable1 = function_to_get_this_variable; $variable2 = function_to_get_this_variable; $variable3 = function_to_get_this_variable; $variable4 = function_to_get_this_variable; $variable5 = function_to_get_this_variable; $variable6 = function_to_get_this_variable; </code></pre> <p>Now, if i print each value individually (i.e. through echo $variable1;), i get the value i'm looking for. But if try to print them together, through</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>It prints only variables until variables 4, then it doesn't print nothing. If i leave only </p> <pre><code>echo(" This is the variable 5: " . $variable5 . " This is the variable 6: " . $variable6); </code></pre> <p>It prints only the variable 5. And again, if leave only </p> <pre><code>echo(" This is the variable 6: " . $variable6); </code></pre> <p>It prints the sixth correctly.</p> <p>Which can be the problem? Also, i remember you that i'm doing a parsing of a webpage (if it can be useful). Thanks all in advance.</p>
    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.
 

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