PHP IN HINDI | DATA TYPES

PHP Data Types In Hindi

PHP

PHP Data Types In Hindi:- Data Types Ko Variables Ki Value Ko Store Karne Ke Liye Istemal Kiya Jata Hain Ye Data Types Sabhi Programming Language Main Hote Hain |

Yadi Aapne  HTML Full Course  And CSS Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |

PHP Data Types In Hindi

Variable Main Value Ko Store Karne Ke Liye Ham Data Types Ka Istemal Karte Hain. Variable Main Ham Kisi Bhi Data Types Ki Value Ko Store Kar Sakte Hain. PHP Main Data Types Koi Types Ke Hote Hain For Example:

  • String
  • Integer
  • Float (Floating point numbers )
  • Boolean (true or false)
  • Array
  • Object
  • NULL
  • Resource

String Data Type in Hindi

String Characters Ka Collection Hota Hain And Ek String Koi Tarah Ke Characters Se Bani Ho Sakti Hain. String Main Numbers Nhi Aate Hain And Jo Data Type Bina Number ke Word Main Istemal Ki Jati Hai Use Hi String Data Type Kahte Hain. String Ko “Double Quotes” And ‘Single Quotes’ Ke Under Likhi Jati Hain.

For Example:

<?php
$first_name="Danish";
$last_name=' Ali';
echo $first_name;
echo $last_name;
?>

Output:

Danish Ali

Integer Data Type in Hindi

PHP Integer Data Type Non-Decimal Number Hote Hain And Non-Decimal Ka Matlab Hota Hain Jin Numbers Main Kabhi Decimal Nhi Aati Hain. Integer Data Type Positive And Negative Bhi Hote Sakte Hain |

For Example:

<?php
  $number = 10000;
  echo $number;
?>

Output:

10000

Float Data Type in Hindi

Float Data Type Decimal Number Hote Hain And PHP Float Data Type Floating Point Number Ke Liye Istemal Kiye Jate Main |

For Example:

<?php
  $float_number = 12.23;
   echo $float_number;
?>

Output:

12.23

Boolean Data Type in Hindi

Boolean Data Type 2 Status Ko Represent Karta Hain Ya to TRUE ya FALSE | Boolean Se Matlab true and false Se Hota Hain Jisme Ya to Value True Hoti hai ya False |

For Example:

$x = true;
$y = false;

Boolean Ke Baren Main Aage Ke Chapter Or Deeply Read Karne Walen Hain.

Array Data Type in Hindi

Array Ek Same Data Items Ka Ek Collection Hain. Array Ka Istemal Bahut Sare Data Values Ko Ek Variable Main Store Karne Main Kiya Jata Hain | Array Ke Under Ham Multiple Data Ko Aashani Se Store Kar And Uska Istemal Kar Sakte Hain |

For Example:

<?php
$cars = array("Volvo","BMW","Toyota");
var_dump($cars);
?>

Output:

array(3) { [0]=> string(5) "Volvo" [1]=> string(3) "BMW" [2]=> string(6) "Toyota" }

Objects Data Type in Hindi

PHP Object Ek Type ka Data Hain Jo Ki Data Or Information Ko Store Karke Rakhta Hain Jiske Duvara Function Ki Functionality Ko Access Kiya Ja Sakta Hain |

For Example:

<?php
class Laptop {
    function Laptop() {
        $this->model = "MasterPrograming.com";
    }
}

// create an new object
$b = new Laptop ();

// Show all properties 
echo $b->model;
?>

Output:

MasterPrograming.com

NULL Data Type in Hindi

Null Variable Ek Tarah Ka Variable Hota Hain Jise Koi Value Nhi Di Jati Hain And Null Ek Special Data Type Hain Jiski Keval Ek Hi Value Hoti Hain |

Example:

<?php
$num = null;
echo $num;
?>

Resource Data Type in Hindi

PHP Main Different Type Ke Data Jaise Integer, Double, String Etc. Ye Sab Resource Data Types Ki List Main Aate Hain |

Friends Mujhe Umeed Hai Ki Aapko PHP Data Types In Hindi Ke Bare Mai 100% Jankari Ho Gayi Hogi | Agar Aapko Learn Karne Main Dikkat Aa Rahi Hai To Aap Mere Se Contact Kar Sakte Hai |

Leave a Reply

Your email address will not be published. Required fields are marked *