PHP Execution Operator
In this chapter you will learn:
- What is an execution operator
- What is PHP Execution Operator
- Example - How to use PHP Execution Operator
Description
Execution operator passes commands to the operating system for execution, then capture the results.
Syntax
PHP uses backticks (`) as its execution operator.
Example
The following code will run the command dir and output its results to the screen.
<?PHP
print `dir`;
?>
The code above generates the following result.
Next chapter...
What you will learn in the next chapter:
- What is Operator Precedence
- A list of the operators in order of precedence (highest first):
- Use parentheses to overwrite Operator Precedence