पीएचपी मर () समारोह
उदाहरण
एक संदेश प्रिंट करें और वर्तमान स्क्रिप्ट को समाप्त करें:
<?php
$site = "https://www.w3schools.com/";
fopen($site,"r")
or die("Unable to connect to $site");
?>
परिभाषा और उपयोग
डाई () फ़ंक्शन निकास () फ़ंक्शन का एक उपनाम है ।
वाक्य - विन्यास
die(message)
पैरामीटर मान
Parameter | Description |
---|---|
message | Required. A message or status number to print before terminating the script. A status number will not be written to the output, just used as the exit status. |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | कुछ भी तो नहीं |
---|---|
पीएचपी संस्करण: | 4+ |
❮ पीएचपी विविध संदर्भ