forked from hussien89aa/PHPTutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnull.php
43 lines (38 loc) · 765 Bytes
/
null.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1> Null part </h1>
<?php
$var1="hussein";
$var2=null;
$var3="";
?>
var 1 is null <?php echo is_null($var1) ; ?> <br/>
var 2 is null <?php echo is_null($var2) ; ?> <br/>
var 3 is null <?php echo is_null($var3) ; ?> <br/>
var 4 is null <?php echo is_null($var4) ; ?> <br/>
var 1 is set <?php echo isset($var1) ; ?> <br/>
var 2 is set <?php echo isset($var2) ; ?> <br/>
var 3 is set <?php echo isset($var3) ; ?> <br/>
var 4 is set <?php echo isset($var4) ; ?> <br/>
<h1> Boolean part </h1>
is Married booles?
<?php
$is_married=false;
echo is_bool($is_married);
?>
<h1> float part </h1>
is pi float?
<?php
$pi=3.4;
echo is_float($pi);
?>
</br>
is married float?
<?php
echo is_float($is_married);
?>
</body>
</html>