function.ini-set.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 108 行

HTML
108
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Sets the value of a configuration option</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.ini-restore.html">ini_restore</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.main.html">main</a></div> <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.ini-set" class="refentry"> <div class="refnamediv">  <h1 class="refname">ini_set</h1>  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">ini_set</span> &mdash; <span class="dc-title">Sets the value of a configuration option</span></p> </div>  <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">string</span> <span class="methodname"><b><b>ini_set</b></b></span>    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$varname</tt></span>   , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$newvalue</tt></span>   )</div>  <p class="para rdfs-comment">   Sets the value of the given configuration option.  The configuration option   will keep this new value during the script&#039;s execution, and will be restored   at the script&#039;s ending.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">varname</tt></i></span>     <dd>      <p class="para">      </p>      <p class="para">       Not all the available options can be changed using       <b>ini_set()</b>. There is a list of all available options       in the <a href="ini.html#ini.list" class="link">appendix</a>.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">newvalue</tt></i></span>     <dd>      <p class="para">       The new value for the option.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns the old value on success, <b><tt>FALSE</tt></b> on failure.  </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.get-cfg-var.html" class="function" rel="rdfs-seeAlso">get_cfg_var()</a></li>    <li class="member"><a href="function.ini-get.html" class="function" rel="rdfs-seeAlso">ini_get()</a></li>    <li class="member"><a href="function.ini-get-all.html" class="function" rel="rdfs-seeAlso">ini_get_all()</a></li>    <li class="member"><a href="function.ini-restore.html" class="function" rel="rdfs-seeAlso">ini_restore()</a></li>    <li class="member">     <a href="configuration.changes.html" class="link">How to change configuration settings</a>    </li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.ini-restore.html">ini_restore</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.main.html">main</a></div> <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?