https://www.php.net/manual/fr/

Le code PHP s'écrit toujours entre balises

<?php 
	//Do some PHP code...
?>
//Astuce : 
<?php echo $variable; ?>

Peut s'ecrire : 
<?= $variable; ?>

LES STRINGS

EXERCICE PHP avec OPERATEURS et BOUCLES :

echo '<table border style="border-collapse: collapse;">
				<tr>
					<th>Nombre</th>
					<th>Carré</th>
					<th>Racine</th>
					
				</tr> ';						
				for ($i=0; $i <=5 ; $i++) { 
					echo '<tr> 
						<td>' .$i. '</td>
						<td>' .$i*$i. '</td>
						<td>' .sqrt($i). '</td>
					</tr>';
				}					
echo '</table>';

Nombre Carré Racine 0 0 0 1 1 1 2 4 1.4142135623731 3 9 1.7320508075689 4 16 2 5 25 2.2360679774998

FONCTION ARRAYS :