Single quotes: There are $animal at the zoo.
Double quotes: There are panthers at the zoo.
Single and double quotes are both used to create strings in PHP. Single quotes usually display text exactly as it is written, so a variable name will not be replaced with its value so it will just print out $animal. Double quotes allow PHP variables to be read and replaced with their stored values and this will print out panthers instead $animal.
Back to Home