What is the data type in PHP that is used to store a sequence of characters?

  • int
  • float
  • string
  • array
In PHP, the string data type is used to store a sequence of characters. It can hold alphanumeric characters, symbols, and special characters. Strings are commonly used to represent text or data in PHP. They can be enclosed in single quotes ('') or double quotes ("") in PHP. Learn more: https://www.php.net/manual/en/language.types.string.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *