Linux Today: Linux News On Internet Time.





More on LinuxToday


The ABC's of PHP Part 5 - Strings & Text

Apr 15, 2009, 18:02 (0 Talkback[s])

WEBINAR:
On-Demand

Full Text Search: The Key to Better Natural Language Queries for NoSQL in Node.js


"This is not to say however that a string cannot hold a number value, it can. Under normal circumstances however, you would not unless that number was purely for display.

"You'll notice also that there are 2 sets of parentheses used to enclose strings mentioned above, each set operates differently to the other.

"Using '' parentheses

"When you enclose a PHP string using '' (Otherwise know as single quotation marks) exactly what you put in the string is displayed. This means that no embedded variables are translated and no special sequences such as carriage returns are obeyed."

Complete Story

Related Stories: