PHP | How many data types in php

Опубликовано: 27 Апрель 2023
на канале: RNG Developer
26
4

PHP has a total of eight data types which we use to construct our variables:

Integers − are whole numbers, without a decimal point, like 4195.
Doubles − are floating-point numbers, like 3.14159 or 49.1.
Booleans − have only two possible values either true or false.
NULL − is a special type that only has one value: NULL.
Strings − are sequences of characters, like 'PHP supports string operations.'
Arrays − are named and indexed collections of other values.
Objects − are instances of programmer-defined classes, which can package up both other kinds of values and functions that are specific to the class.
Resources − are special variables that hold references to resources external to PHP (such as database connections).

The first five are simple types, and the next two (arrays and objects) are compound - the compound types can package up other arbitrary values of arbitrary type, whereas the simple types cannot.


На этой странице сайта вы можете посмотреть видео онлайн PHP | How many data types in php длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь RNG Developer 27 Апрель 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 26 раз и оно понравилось 4 зрителям. Приятного просмотра!