Backtick operator in PHP - PHP Send mail vote down 0 vote down 0 Views : 435
Tagged in : PHP
Backtick Operator
Backtick operator is also called as Execution Operator.
These are not a single-quotes. PHP will attempt to execute the contents of the backticks as a shell command.
In PHP to execute a shell command use this backtick operator.
Example:
<?php
$output = `ls -al`; //treated as a backtick operator not a single quotes
echo "
$output
";
?>

By - Nirmala, On - 2010-04-07




    Login to add Comments .