Concept
What are the main characteristics of PHP as a programming language?
ComputerScienceOne / Basic Syntax Rules
"Using the Hello World! program as a starting point, we will examine the basic elements of the PHP language. PHP has adopted many aspects of the C programming language (the interpreter itself is written in C). However, there are some major aspects in which it differs from C. PHP is an interpreted language: it is not compiled. Instead it is interpreted through an interpreter that parses commands in a script file line-by-line. Any syntax errors, therefore, become runtime errors. PHP is dynamically typed: you do not declare variables or specify a variable’s type. Instead, when you assign a variable a value, the variable’s type dynamically changes to accommodate the assigned value. Variable names always begin with a dollar sign, $."
Related Ideas
- How do PHP features and whitespace support organized code?ComputerScienceOne · Basic Syntax Rules
- What are the basic syntax rules of C?ComputerScienceOne · Basic Syntax Rules
- What are the basic syntax rules of Java?ComputerScienceOne · Basic Syntax Rules
- Which topics are listed in this section?ComputerScienceOne · Basic Syntax Rules . . . . . . . . . . . . . . . . . . . . . . . . . .
- What development environment do you need to use for Java?ComputerScienceOne · Basic Syntax Rules