PHP data types - Tutorial for students

Опубликовано: 09 Октябрь 2024
на канале: Student Projects Live
324
1

Welcome to PHP programming,

In PHP, variables can store data of different types, and different data types can do different
things.

PHP supports the following data types:

String
Integer
Float (#Floating point numbers - also called double)
Boolean
Array
Object
Null
Resource

PHP String

A string is a sequence of characters, like 'Hello World';

A string can be any text inside quotes. You can use single or double quotes.

Let us see a PHP code as an example of string.

Save it in our server i.e, xampp/htdocs

Download Source code and Project documentation :- https://www.studentprojects.live
Do you have Any queries? Contact us in Whatsapp :- +91-9972853368