Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <body> <?php trait message1 { public function msg1() { echo "La POO est amusante! "; } } class Welcome { utiliser message1; } $obj = new Welcome(); $obj->msg1(); ?> </body> </html>
OOP est amusant!