mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Capitalization
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@298615 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
62cacfd886
commit
3b55bc75e1
5 changed files with 16 additions and 16 deletions
|
@ -18,7 +18,7 @@
|
|||
<para>
|
||||
This method cannot be called when the <classname>ArrayObject</classname>
|
||||
was constructed from an object.
|
||||
Use <methodname>ArrayObject::offsetset</methodname> instead.
|
||||
Use <methodname>ArrayObject::offsetSet</methodname> instead.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
@ -91,7 +91,7 @@ object(ArrayObject)#1 (5) {
|
|||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><methodname>ArrayObject::offsetset</methodname></member>
|
||||
<member><methodname>ArrayObject::offsetSet</methodname></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -40,14 +40,14 @@
|
|||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><methodname>ArrayObject::offsetexists</methodname> example</title>
|
||||
<title><methodname>ArrayObject::offsetExists</methodname> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$arrayobj = new ArrayObject(array('zero', 'one', 'example'=>'e.g.'));
|
||||
var_dump($arrayobj->offsetexists(1));
|
||||
var_dump($arrayobj->offsetexists('example'));
|
||||
var_dump($arrayobj->offsetexists('notfound'));
|
||||
var_dump($arrayobj->offsetExists(1));
|
||||
var_dump($arrayobj->offsetExists('example'));
|
||||
var_dump($arrayobj->offsetExists('notfound'));
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -40,14 +40,14 @@
|
|||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><methodname>ArrayObject::offsetget</methodname> example</title>
|
||||
<title><methodname>ArrayObject::offsetGet</methodname> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$arrayobj = new ArrayObject(array('zero', 7, 'example'=>'e.g.'));
|
||||
var_dump($arrayobj->offsetget(1));
|
||||
var_dump($arrayobj->offsetget('example'));
|
||||
var_dump($arrayobj->offsetexists('notfound'));
|
||||
var_dump($arrayobj->offsetGet(1));
|
||||
var_dump($arrayobj->offsetGet('example'));
|
||||
var_dump($arrayobj->offsetExists('notfound'));
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><methodname>ArrayObject::offsetset</methodname> example</title>
|
||||
<title><methodname>ArrayObject::offsetSet</methodname> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -61,12 +61,12 @@ class Example {
|
|||
public $property = 'prop:public';
|
||||
}
|
||||
$arrayobj = new ArrayObject(new Example());
|
||||
$arrayobj->offsetset(4, 'four');
|
||||
$arrayobj->offsetset('group', array('g1', 'g2'));
|
||||
$arrayobj->offsetSet(4, 'four');
|
||||
$arrayobj->offsetSet('group', array('g1', 'g2'));
|
||||
var_dump($arrayobj);
|
||||
|
||||
$arrayobj = new ArrayObject(array('zero','one'));
|
||||
$arrayobj->offsetset(null, 'last');
|
||||
$arrayobj->offsetSet(null, 'last');
|
||||
var_dump($arrayobj);
|
||||
?>
|
||||
]]>
|
||||
|
|
|
@ -43,12 +43,12 @@
|
|||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><methodname>ArrayObject::offsetunset</methodname> example</title>
|
||||
<title><methodname>ArrayObject::offsetUnset</methodname> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$arrayobj = new ArrayObject(array(0=>'zero',2=>'two'));
|
||||
$arrayobj->offsetunset(2);
|
||||
$arrayobj->offsetUnset(2);
|
||||
var_dump($arrayobj);
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue