<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Get a binary dump of the given files and user variables</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.apc-add.html">apc_add</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.apc-bin-dumpfile.html">apc_bin_dumpfile</a></div> <div class="up"><a href="ref.apc.html">APC Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.apc-bin-dump" class="refentry"> <div class="refnamediv"> <h1 class="refname">apc_bin_dump</h1> <p class="verinfo">(PECL apc >= 3.1.4)</p><p class="refpurpose"><span class="refname">apc_bin_dump</span> — <span class="dc-title">Get a binary dump of the given files and user variables</span></p> </div> <div class="refsect1 description" id="refsect1-function.apc-bin-dump-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><strong>apc_bin_dump</strong></span> ([ <span class="methodparam"><span class="type">array</span> <code class="parameter">$files</code><span class="initializer"> = NULL</span></span> [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$user_vars</code><span class="initializer"> = NULL</span></span> ]] )</div> <p class="para rdfs-comment"> Returns a binary dump of the given files and user variables from the APC cache. A <strong><code>NULL</code></strong> for files or user_vars signals a dump of every entry, whereas array() will dump nothing. </p> </div> <div class="refsect1 parameters" id="refsect1-function.apc-bin-dump-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <span class="term"><em><code class="parameter">files</code></em></span> <dd> <p class="para"> The files. Passing in <strong><code>NULL</code></strong> signals a dump of every entry, while passing in <span class="function"><a href="function.array.html" class="function">array()</a></span> will dump nothing. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">user_vars</code></em></span> <dd> <p class="para"> The user vars. Passing in <strong><code>NULL</code></strong> signals a dump of every entry, while passing in <span class="function"><a href="function.array.html" class="function">array()</a></span> will dump nothing. </p> </dd> </dt> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-function.apc-bin-dump-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns a binary dump of the given files and user variables from the APC cache, <strong><code>FALSE</code></strong> if APC is not enabled, or <strong><code>NULL</code></strong> if an unknown error is encountered. </p> </div> <div class="refsect1 seealso" id="refsect1-function.apc-bin-dump-seealso"> <h3 class="title">See Also</h3> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.apc-bin-dumpfile.html" class="function" rel="rdfs-seeAlso">apc_bin_dumpfile()</a> - Output a binary dump of cached files and user variables to a file</span></li> <li class="member"> <span class="function"><a href="function.apc-bin-load.html" class="function" rel="rdfs-seeAlso">apc_bin_load()</a> - Load a binary dump into the APC file/user cache</span></li> </ul> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.apc-add.html">apc_add</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.apc-bin-dumpfile.html">apc_bin_dumpfile</a></div> <div class="up"><a href="ref.apc.html">APC Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>