mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-28 23:08:55 +00:00

see also get_cfg_var added to ini_set git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@132467 c90b9560-bf6c-de11-be94-00142212c4b1
101 lines
2.7 KiB
XML
101 lines
2.7 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<!-- splitted from ./en/functions/info.xml, last change in rev 1.23 -->
|
|
<refentry id="function.ini-get-all">
|
|
<refnamediv>
|
|
<refname>ini_get_all</refname>
|
|
<refpurpose>Gets all configuration options</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>ini_get_all</methodname>
|
|
<methodparam choice="opt"><type>string</type><parameter>extension</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Returns all the registered configuration options as an
|
|
associative array. If the optional <parameter>extension</parameter>
|
|
parameter is set, returns only options specific for that
|
|
extension.
|
|
</para>
|
|
<para>
|
|
The returned array uses the directive name as the array key, with
|
|
elements of that array being <literal>global_value</literal> (set in
|
|
&php.ini;), <literal>local_value</literal> (perhaps set with
|
|
<function>ini_set</function> or &htaccess;), and
|
|
<literal>access</literal> (the access level). See the manual section
|
|
on <link linkend="configuration.changes">configuration changes</link>
|
|
for information on what access levels mean.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
It's possible for a directive to have multiple access levels, which is
|
|
why <literal>access</literal> shows the appropriate bitmask values.
|
|
</para>
|
|
</note>
|
|
<para>
|
|
<example>
|
|
<title>A <function>ini_get_all</function> example</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$inis = ini_get_all();
|
|
|
|
print_r($inis);
|
|
|
|
/* Partial output may look like:
|
|
|
|
Array
|
|
(
|
|
[allow_call_time_pass_reference] => Array
|
|
(
|
|
[global_value] => 1
|
|
[local_value] => 1
|
|
[access] => 6
|
|
)
|
|
[allow_url_fopen] => Array
|
|
(
|
|
[global_value] => 1
|
|
[local_value] => 1
|
|
[access] => 7
|
|
)
|
|
|
|
...
|
|
|
|
)
|
|
*/
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
See also: <function>ini_get</function>,
|
|
<function>ini_restore</function>,
|
|
<function>ini_set</function>,
|
|
<function>get_loaded_extensions</function>, and
|
|
<function>phpinfo</function>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|