May 2003
Intermediate to advanced
592 pages
14h 28m
English
In PHP it’s important to understand how single quotation marks differ from double quotation marks. With the echo() and print() statements you can use either, as in the examples in this chapter. But there is a specific difference between the two and why you might use them. So far I’ve told you when you would use which, but now it’s time to establish the pattern more explicitly.
In PHP, values enclosed within single quotation marks will be treated literally, whereas those within double quotation marks will be interpolated. In other words, placing variables and special characters (Table 1.2) within double quotes will have their represented values printed, not their literal values. For example, assume that you have ...
Read now
Unlock full access