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
- How can you create and reassign strings in PHP?ComputerScienceOne · Basics
- How do you assign values to variables in PHP?ComputerScienceOne · Using Variables
- How do if, if-else, and if-else-if statements work in PHP?ComputerScienceOne · If, If-Else, If-Else-If Statements
- How are while loops structured and styled in PHP?ComputerScienceOne · While Loops
- What types of values does PHP support?ComputerScienceOne · Using Variables
- What are PHP strings and how should they be treated?ComputerScienceOne · Basics