Bifalgorithm post · Computer science one · Basic Syntax Rules
How are strings, statements, and code blocks written in PHP?
How are strings, statements, and code blocks written in PHP? (Computer science one · Basic Syntax Rules) — "Strings and characters are essentially the same thi…
Ideas in this flowchart
- Basic PHP syntax uses strings, statements, code blocks, and reserved keywords.
- Strings and characters are essentially the same type of value.
- A character is a string with a length of 1.
- Strings and characters can be delimited by single or double quotes.
- Examples include "this is a string", 'this is also a string', 'A', and "a".
- Executable statements are terminated with a semicolon (;).
- Code blocks are defined with opening and closing curly brackets ({ ... }).
- Code blocks can be nested within other code blocks.
- The PHP Manual provides complete lists of reserved words and keywords.