mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-03 05:02:01 -05:00
572 B
572 B
title, localeTitle
| title | localeTitle |
|---|---|
| Die and Exit | Morir y salir |
Morir y salir
Las funciones die() y exit() son idénticas. Cada uno toma un argumento (una cadena) que contiene un mensaje de error. Al ejecutarse, emiten el mensaje y detienen inmediatamente la ejecución del script.
<?php
die('Die() function was run');
<?php
exit('Exit() function was run');