Concept
How are strings, statements, and code blocks written in PHP?
ComputerScienceOne / Basic Syntax Rules
"Strings and characters are essentially the same thing (characters are strings of length 1). Strings and characters can be delimited by either single quotes or double quotes. \"this is a string\", 'this is also a string'; 'A' and \"a\" are both single character strings. Executable statements are terminated by a semicolon, ;. Code blocks are defined by using opening and closing curly brackets, { ... }. Moreover, code blocks can be nested: code blocks can be defined within other code blocks. A complete list of reserved and keywords can be found in the PHP Manual: http://php.net/manual/en/reserved.php and http://php.net/manual/en/reserved.keywords.php."
Related Ideas
- What are the basic syntax rules of C?ComputerScienceOne · Basic Syntax Rules
- What are the basic syntax rules of Java?ComputerScienceOne · Basic Syntax Rules
- What are PHP strings and how should they be treated?ComputerScienceOne · Basics
- How do PHP tags identify code that should be interpreted as PHP?ComputerScienceOne · Libraries
- How are comments written in PHP code?ComputerScienceOne · PHP Tags