If html can be used within php can the html comments also be used? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

If html can be used within php can the html comments also be used?

26th Oct 2016, 7:29 PM
Stephen
2 Réponses
+ 2
Yes, it can be used
26th Oct 2016, 8:39 PM
Miyaki Joshua
Miyaki Joshua - avatar
+ 1
Of course within '...' or "...", for exemple : <?php echo '‹!-- html comment --›'; ?› Don't forget php is server side executed, and html client side
30th Oct 2016, 10:14 AM
DamienR