There are 2 special data types in PHP
It refers the external resources like database connection, FTP connection, file pointers, etc. In simple terms, a resource is a special variable which carrying a reference to an external resource.
<?php
	$conn = ftp_connect("127.0.0.1") or die("Could not connect");
	echo get_resource_type($conn);
?> 
<?php
	$conn= ftp_connect("127.0.0.1") or die("could not connect");
	echo $conn;
?> 
<?php
	$handle = fopen("tpoint.txt", "r");
	var_dump($handle);
	echo "<br>";
	$conn= ftp_connect("127.0.0.1") or die("could not connect");
	var_dump($conn);
?> 
A variable of type Null is a variable without any data. In PHP, null is not a value, and we can consider it as a null variable based on 3 condition.
<?php $empty=null; var_dump($empty); ?>
 
<?php
    	$a1 = " ";
   	 var_dump($a1);
    	echo "<br />";
    	$a2 = null;
    	var_dump($a2);
?> 
<?php $x = NULL; var_dump($x); echo "<br>"; $y = "Hello rookienerd!"; $y = NULL; var_dump($y); ?>
 
