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
Loading...
Related Quiz
- Which of the following data types in PHP is not scalar?
- You are writing a PHP script and you need to access data that was submitted from a form using the POST method. How would you do this using a superglobal?
- In PHP, variable names can start with a number.
- To access data from the $_SERVER superglobal in PHP, you can use $_SERVER['element'] where 'element' is the name of the ______ you wish to access.
- What is the software stack called that includes PHP, Apache, and MySQL for Windows?