<!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>Set value for an offset</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="arrayiterator.offsetget.html">ArrayIterator::offsetGet</a></div> <div class="next" style="text-align: right; float: right;"><a href="arrayiterator.offsetunset.html">ArrayIterator::offsetUnset</a></div> <div class="up"><a href="class.arrayiterator.html">ArrayIterator</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="arrayiterator.offsetset" class="refentry"> <div class="refnamediv"> <h1 class="refname">ArrayIterator::offsetSet</h1> <p class="verinfo">(PHP 5 >= 5.0.0)</p><p class="refpurpose"><span class="refname">ArrayIterator::offsetSet</span> — <span class="dc-title">Set value for an offset</span></p> </div> <div class="refsect1 description" id="refsect1-arrayiterator.offsetset-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>ArrayIterator::offsetSet</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$index</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$newval</code></span> )</div> <p class="para rdfs-comment"> Sets a value for a given offset. </p> <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is currently not documented; only its argument list is available. </p></div> </div> <div class="refsect1 parameters" id="refsect1-arrayiterator.offsetset-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">index</code></em></span> <dd> <p class="para"> The index to set for. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">newval</code></em></span> <dd> <p class="para"> The new value to store at the index. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-arrayiterator.offsetset-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> No value is returned. </p> </div> <div class="refsect1 seealso" id="refsect1-arrayiterator.offsetset-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="methodname"><a href="arrayiterator.offsetget.html" class="methodname" rel="rdfs-seeAlso">ArrayIterator::offsetGet()</a> - Get value for an offset</span></li> <li class="member"> <span class="methodname"><a href="arrayiterator.offsetunset.html" class="methodname" rel="rdfs-seeAlso">ArrayIterator::offsetUnset()</a> - Unset value for an offset</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="arrayiterator.offsetget.html">ArrayIterator::offsetGet</a></div> <div class="next" style="text-align: right; float: right;"><a href="arrayiterator.offsetunset.html">ArrayIterator::offsetUnset</a></div> <div class="up"><a href="class.arrayiterator.html">ArrayIterator</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>