You are on page 1of 1

Khedut shikshan mandal's

R.B.Madkholkar Mahavidyalaya Chandgad


Computer Science
Name:-Mahesh Appaji Rane. Date:-
Class:-B.Sc.II Roll No:-204
Year :-2020-21 PRN NO.:-2019078592

---------------------------------------------------------------------------------------------------------------------------
Assignment no: 7 Assignment Name: Write a PHP script to check whether given
variable stores an integer, float, Boolean, null, array, string.
---------------------------------------------------------------------------------------------------------------------------

<?php
$string = "Google";
//$string = “2500.50”;
$int = 3200;
//$string = “2500.50”;
//$string = ‘2500.50’;
$float = 8770.50;
$bool = true;
$bool1 = false;
$null = null;
$array = array("html","css","js","php","java");
Echo $string."<br>";
Var_dump($string);
Echo $int."<br>";
Var_dump($int);
Echo $float."<br>";
Var_dump($float);
Echo $bool."<br>";
Var_dump($bool);
Echo $bool1."<br>";
Var_dump($bool1);
Echo $null."<br>";
Var_dump($null);
Echo "<br>";
Echo $array[1]."<br>";
Var_dump($array);
?>

Page no:-15

You might also like