<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/language.operators.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'language.operators.execution.php',
    1 => 'Execution',
    2 => 'Execution Operators',
  ),
  'up' => 
  array (
    0 => 'language.operators.php',
    1 => 'Operators',
  ),
  'prev' => 
  array (
    0 => 'language.operators.errorcontrol.php',
    1 => 'Error Control',
  ),
  'next' => 
  array (
    0 => 'language.operators.logical.php',
    1 => 'Logic',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'language/operators/execution.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="language.operators.execution" class="sect1">
 <h2 class="title">Execution Operators</h2>
 
 <p class="para">
  PHP supports one execution operator: backticks (<code class="literal">``</code>). Note that
  these are not single-quotes! PHP will attempt to execute the
  contents of the backticks as a shell command; the output will be
  returned (i.e., it won&#039;t simply be dumped to output; it can be
  assigned to a variable).  Use of the backtick operator is identical
  to <span class="function"><a href="function.shell-exec.php" class="function">shell_exec()</a></span>.
 </p>
 <p class="para">
  <div class="example" id="example-1">
   <p><strong>Приклад #1 Backtick Operator</strong></p>
   <div class="example-contents">
<div class="annotation-non-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$output </span><span style="color: #007700">= `</span><span style="color: #DD0000">ls -al</span><span style="color: #007700">`;<br />echo </span><span style="color: #DD0000">"&lt;pre&gt;</span><span style="color: #0000BB">$output</span><span style="color: #DD0000">&lt;/pre&gt;"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </p>
 <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
  <p class="para">
   The backtick operator is disabled when
   <span class="function"><a href="function.shell-exec.php" class="function">shell_exec()</a></span> is disabled.
  </p>
 </p></blockquote>
 <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
  <p class="para">
   Unlike some other languages, backticks have no special meaning
   within double-quoted strings.
  </p>
 </p></blockquote>

 <div class="sect2">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><a href="ref.exec.php" class="link">Program Execution functions</a></li>
    <li><span class="function"><a href="function.popen.php" class="function">popen()</a></span></li>
    <li><span class="function"><a href="function.proc-open.php" class="function">proc_open()</a></span></li>
    <li><a href="features.commandline.php" class="link">Using PHP from the commandline</a></li>
   </ul>
  </p>
 </div>
</div><?php manual_footer($setup); ?>