Source of: /manual/en/function.sem-remove.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.sem.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'function.sem-remove.php',
1 => 'sem_remove',
),
'up' =>
array (
0 => 'ref.sem.php',
1 => 'Semaphore Functions',
),
'prev' =>
array (
0 => 'function.sem-release.php',
1 => 'sem_release',
),
'next' =>
array (
0 => 'function.shm-attach.php',
1 => 'shm_attach',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.sem-remove" class="refentry">
<div class="refnamediv">
<h1 class="refname">sem_remove</h1>
<p class="verinfo">(PHP 4 >= 4.1.0, PHP 5)</p><p class="refpurpose"><span class="refname">sem_remove</span> — <span class="dc-title">Remove a semaphore</span></p>
</div>
<a name="function.sem-remove.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="type">bool</span> <span class="methodname"><b>sem_remove</b></span>
( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$sem_identifier</tt></span>
)</div>
<p class="para rdfs-comment">
<b>sem_remove()</b> removes the given semaphore.
</p>
<p class="para">
After removing the semaphore, it is no more accessible.
</p>
</div>
<a name="function.sem-remove.parameters"></a><div class="refsect1 parameters">
<h3 class="title">Parameters</h3>
<p class="para">
</p><dl>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">sem_identifier</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
A semaphore resource identifier as returned
by <a href="function.sem-get.php" class="function">sem_get()</a>.
</p>
</dd>
</dl>
<p>
</p>
</div>
<a name="function.sem-remove.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns <b><tt class="constant">TRUE</tt></b> on success or <b><tt class="constant">FALSE</tt></b> on failure.
</p>
</div>
<a name="function.sem-remove.seealso"></a><div class="refsect1 seealso">
<h3 class="title">See Also</h3>
<p class="para">
</p><ul class="simplelist">
<li class="member"><a href="function.sem-get.php" class="function" rel="rdfs-seeAlso">sem_get()</a> - Get a semaphore id</li>
<li class="member"><a href="function.sem-release.php" class="function" rel="rdfs-seeAlso">sem_release()</a> - Release a semaphore</li>
<li class="member"><a href="function.sem-acquire.php" class="function" rel="rdfs-seeAlso">sem_acquire()</a> - Acquire a semaphore</li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>