Different types of data take up different amounts of memory and can be treated differently when they are manipulated in a script. Some programming languages therefore demand that the programmer declare in advance which type of data a variable will contain . By contrast,PHP is loosely typed,which means it calculates data types as data is assigned to each variable. This is a mixed blessing. on the one hand,it means that variables can be used flexibly, holding a string at one point and an integer at another. On the other hand, this can lead to problems in larger scripts if you expect a variable to hold one data type when, in fact, it holds something completely different. you might have created code designed to work with an array variable.
Six standard data types available in PHP
1.Integer => Contain a whole number like(5)
2.double => Contains a floating point number like(5.354)
3.string => Contains a collection of characters like("hello")
4.Boolean =>One of the special values true or false(true/false)
5.Object =>See Object tutorials.
6.Array => Contain as many values as you want in a variable Like $b = [4,10,11,30];
We also learn about data type.Our next tutorials.Thanks you .Hope you enjoy it.
Six standard data types available in PHP
1.Integer => Contain a whole number like(5)
2.double => Contains a floating point number like(5.354)
3.string => Contains a collection of characters like("hello")
4.Boolean =>One of the special values true or false(true/false)
5.Object =>See Object tutorials.
6.Array => Contain as many values as you want in a variable Like $b = [4,10,11,30];
We also learn about data type.Our next tutorials.Thanks you .Hope you enjoy it.
PHP tutorials Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info.
ReplyDelete