PHP Data Types

codinger 27 Jun 2023 | 8:19 pm PHP, PHP Data Types

PHP Data Types→

PHP मे Variable डाटा को Store करता है.

PHP निन्मलिखित Data Types को Store करता है।

  • String
  • Integer
  • Float (floating point numbers - also called double)
  • Boolean
  • Array
  • Object
  • NULL
  • Resource
<html>
<head>
<title>PHP Data Types</title>
</head>
<body>
<?php
$a = "Ram";
echo $a;

echo "<br>";

var_dump($a);  // var_dump से हमें se hume data types or Variable ki Value me Kitne Charactor Hai Ye Pta Chlta hai

echo "<hr>";

$b = 25;
var_dump($b); // intiger value (int(25))

echo "<hr>";

$c = 20.25;
var_dump($c); // float value (float(20.25))

echo "<hr>";

$d = true;
var_dump($d); // boolean  (bool(true))

echo "<hr>";


?>
</body>
</html>

 

Share

Related Posts



Comments:-


Please login to comment..