PHP Snippets: Quotes

PHPThis post is part of the PHP Snippets series where I will be covering the basics of developing in PHP.

Both single and double quotes are supported in PHP, but there is a significant difference in how they are handled.

Single quotes are output “as is” and are the quickest form of quoting. When using single quotes, you would need to concatenate variables with a string to output them:

Continue Reading azurecurve’s Article on their blog

PHP Snippets: Quotes

This post is part of the PHP Snippets series where I will be covering the basics of developing in PHP. Both single and double quotes are supported in PHP, but there is a significant difference in how they are handled. Single quotes are output “as is” and are the quickest form of quoting.

Blog Syndicated with azurecurve’s Permission

Author: Ian Grieve

Share This Post On
Share via
Copy link
Powered by Social Snap