Backtick operator in PHP - PHP Views : 473
Tagged in : PHP
0 0
Send mail
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 .