Balise d’ouverture et de fermeture
Les instructions en PHP sont signalés par les balises d’ouverture et de fermeture. Tout ce qui est en dehors de ces balises sera affiché tel quel.
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<?php
?>
<?php
?>
<?php
?>
Les autres balises d’ouverture et de fermeture en PHP.
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<?
?>
<?
?>
<?
?>
ou
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<%
%>
<%
%>
<%
%>
ou encore
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<script language="php">
</script >
<script language="php">
</script >
<script language="php">
</script >
Note : Nous vous conseillons l’utilisation de la première méthode, qui est la seule vraiment compatible avec toutes les configurations.