PHP String Data Type With Examples

aimtocode

String Data Type

A string is a sequence of characters, like "Welcome to aimtocode!". A string can be any text inside quotes. You can use single or double quotes

A string also supports and hold letters, numbers, and special characters and it can be as large as up to 2GB (2147483647 bytes maximum).


Example:




Result:

 Well come to aimtocode!
 Hope you enjoy learning!
 stay here, learn more

Read More:


aimtocode