Aryan PrajapatKnowledge Contributor
What are the different types of PHP variables?
What are the different types of PHP variables?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
In PHP, there are eight data types that are utilized to create variables:
1.Integers, such as 4195, are entire numbers without a decimal point.
2.Floating-point numbers, such as 3.14159 or 49.1, are known as doubles.
3.True or false are the only two possible values for Booleans.
4.NULL is a unique type with only one value: NULL.
5.Strings are character sequences, such as ‘PHP supports string operations.’
6.Arrays are collections of other values that are named and indexed.
7.Objects are instances of programmer-defined classes that can bundle up both other types of values and class-specific functions.
8.Resources are unique variables that store references to resources outside of PHP.