How to echo echo $ arrayReturn and html code [duplicate]

0

How do I echo this whole code?

<li>Número: 
    <strong><?=$arrayReturn['numero'];?></strong>
</li>
    
asked by anonymous 19.02.2018 / 14:17

2 answers

0

Remove the <? ?> delimiters, enclose the code in double quotation marks, and concatenate:

<?php
echo "<li>Número: 
    <strong>".$arrayReturn['numero']."</strong>
</li>";
?>
    
19.02.2018 / 14:46
0

To give echo in an array you can use the function print_r()

<strong> <?php print_r($arrayReturn);?> </strong>

Sorry to leave the preformatted code on the screen you can do

<pre>
    <strong> <?php print_r($arrayReturn);?> </strong>
</pre>
    
19.02.2018 / 14:37