Single quote (”) is used to specify a string. Example:
<?php
echo ‘string is specified in single quote’
?>
You Might Also Like:
- PHP: DATA TYPES There are 8 data types in PHP out of which 5 are scalar. Variables hold the values of these data types. Variables react according to...
- PHP: Data Types: Strings Strings are internally null-terminated sequence of characters. A string can be used directly in a function call or it can be stored in a variable....
- PHP: Data Types: Resources Resource are special data types. They represent PHP extension resources like database query, database connection etc. These variables types are passed around relevant functions which...
- Escaping Strings Depending on how you have declared a string, and how the data in the string is formatted, it may be necessary to escape certain characters....
- Variables, Constants and Data Types Variables: Variables are used for storing values having the name of our choice preceded by a dollar sign. It works as a container for storing...
- PHP: Data Types: Constants Instead of using assignment operators like we do while declaring variables, constants are defined by define() function. Constants don’t use any $ sign like variables...
- PHP: Data Types: Null Null data type can have only one possible value that is NULL. Here the variable represents with no value which means the variable is marked...
- PHP: Data Types: Booleans PHP4 introduced Booleans for the very first time. Booleans did’t existed before PHP4. Booleans are the values that may be true or false. Here both...




[...] PHP: Data Types: Strings: Single Quotes [...]