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.





















Home »
  PHP Tutorial »
    Language Basic »




PHP Introduction
PHP Operators
PHP Statements
Variable
PHP Function Create
Exception
PHP Class Definition