0
How do I echo this whole code?
<li>Número:
<strong><?=$arrayReturn['numero'];?></strong>
</li>
0
How do I echo this whole code?
<li>Número:
<strong><?=$arrayReturn['numero'];?></strong>
</li>
0
Remove the delimiters <? ?>
, include code in double quotes and concatenate:
<?php
echo "<li>Número:
<strong>".$arrayReturn['numero']."</strong>
</li>";
?>
Also had already tried Syntax error, Unexpected $EOF, expecting T_STRING or T_VARIABLE or T_NUM_STRING
Gave! I had already tried so, but I used simple quotes and so I didn’t even stop to think! thanks a lot!
0
To give echo
in an array you can use the function print_r()
<strong> <?php print_r($arrayReturn);?> </strong>
Dear want to leave the code pre-formatted on the screen you can do
<pre>
<strong> <?php print_r($arrayReturn);?> </strong>
</pre>
There is the syntax error since < do <li is not expected.
Can you be more detailed in what you want? Your question is very vague and does not have a clarity of your doubt. What is the structure of this array? what is the expected result of the code?
I just want to echo the above & #Xa;<? php echo "<li>Number: <Strong><?= $arrayReturn['numero'];? ></strong>
</li>";>

Sei?
If that’s all there is nothing wrong with your code, except for the reduced PHP print tag which is not the most advisable. To know where the error is you must put the structure of the array you are using.
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.
@Everson, I need to echo (in everything) above. the first code you sent does not work. and how much the duplicate question does not fit either. (including the TEO)
– J. Doe
you want to show on the screen the html code without running it, correct?
– Don't Panic
@J.Doe leia https://answall.com/q/120559/57801 and https://answall.com/q/59934/57801
– Don't Panic