Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
die() function in PHP
The die() function prints a message and exits the current script.
Syntax
die(msg)
Parameters
msg − The message to write before exiting the script.
Return
The die() function returns nothing.
Example
<?php
$url = "https://www.example.com/";
fopen($url,"r")
or die("Can't connect!");
?>
Output
The following is the output.
Can’t connect!
Advertisements
