Quote Originariamente inviata da condor_uk Visualizza il messaggio
Buongiorno a tutti,
mi sapreste indicare come commentare una riga di codice che all'interno contiene del php ?

Es:
codice:
<td><?php echo "<a href='../pto/privacy.pdf' target='_blank'><img src='images/gdpr.png' alt='Privacy' height='32' width='32'></a>"; ?></td>
Grazie
Se vuoi inserire la citazione nel php (nascosto dal browser), usa gli esempi sopra. altrimenti puoi anche usare i commenti html. per esempio.


codice:
<!-- comment here -->
<td><?php echo "<a href='../pto/privacy.pdf' target='_blank'><img src='images/gdpr.png' alt='Privacy' height='32' width='32'></a>"; ?></td>
In PHP piace così

codice:
<td>
<?php //comment here ?>
<?php echo "<a href='../pto/privacy.pdf' target='_blank'><img src='images/gdpr.png' alt='Privacy' height='32' width='32'></a>"; ?></td>