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.
Feed/

How are strings, statements, and code blocks written in PHP?

No cover

Channel

Computer science one

1 page

"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."

Flowchart preview
👍
0
0 comments0 shares

Sign in to view and post comments.