Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions language/oop5/inheritance.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ class Bar extends Foo
$foo = new Foo();
$bar = new Bar();
$foo->printItem('baz'); // Output: 'Foo: baz'
$foo->printPHP(); // Output: 'PHP is great'
$foo->printPHP(); // Output: 'PHP is great.'
$bar->printItem('baz'); // Output: 'Bar: baz'
$bar->printPHP(); // Output: 'PHP is great'
$bar->printPHP(); // Output: 'PHP is great.'

?>
]]>
Expand Down
2 changes: 1 addition & 1 deletion reference/datetime/functions/mktime.xml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ print date('c', $nextyear) . "\n";
<para>
The last day of any given month can be expressed as the "0" day
of the next month, not the -1 day. Both of the following examples
will produce the string "The last day in Feb 2000 is: 29".
will produce the string "Last day in Feb 2000 is: 29".
</para>
<programlisting role="php">
<![CDATA[
Expand Down
2 changes: 1 addition & 1 deletion reference/dom/domelement/construct.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $dom = new DOMDocument('1.0', 'iso-8859-1');
$element = $dom->appendChild(new DOMElement('root'));
$element_ns = new DOMElement('pr:node1', 'thisvalue', 'http://xyz');
$element->appendChild($element_ns);
echo $dom->saveXML(); /* <?xml version="1.0" encoding="utf-8"?>
echo $dom->saveXML(); /* <?xml version="1.0" encoding="iso-8859-1"?>
<root><pr:node1 xmlns:pr="http://xyz">thisvalue</pr:node1></root> */

?>
Expand Down
1 change: 0 additions & 1 deletion reference/ds/ds/map/ksort.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ print_r($map);
<screen>
<![CDATA[
Ds\Map Object
Ds\Map Object
(
[0] => Ds\Pair Object
(
Expand Down
2 changes: 0 additions & 2 deletions reference/ds/ds/map/ksorted.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ print_r($map->ksorted());
<screen>
<![CDATA[
Ds\Map Object
Ds\Map Object
(
[0] => Ds\Pair Object
(
Expand Down Expand Up @@ -99,7 +98,6 @@ print_r($sorted);
<screen>
<![CDATA[
Ds\Map Object
Ds\Map Object
(
[0] => Ds\Pair Object
(
Expand Down
3 changes: 1 addition & 2 deletions reference/ds/ds/map/pairs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var_dump($map->pairs());
&example.outputs.similar;
<screen>
<![CDATA[
object(Ds\Map)#8 (3) {
object(Ds\Vector)#8 (3) {
[0]=>
object(Ds\Pair)#5 (2) {
["key"]=>
Expand All @@ -70,7 +70,6 @@ object(Ds\Map)#8 (3) {
int(3)
}
}
p
]]>
</screen>
</example>
Expand Down
5 changes: 2 additions & 3 deletions reference/ds/ds/pair/clear.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ print_r($pair);
<![CDATA[
Ds\Pair Object
(
[0] => 1
[1] => 2
[2] => 3
[key] => a
[value] => 1
)
Ds\Pair Object
(
Expand Down
2 changes: 1 addition & 1 deletion reference/ds/ds/vector/join.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var_dump($vector->join());
&example.outputs.similar;
<screen>
<![CDATA[
string(11) "abc123"
string(6) "abc123"
]]>
</screen>
</example>
Expand Down
2 changes: 1 addition & 1 deletion reference/memcached/memcached/fetch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ while ($result = $m->fetch()) {
array(3) {
["key"]=>
string(3) "int"
"value"]=>
["value"]=>
int(99)
["cas"]=>
float(2363)
Expand Down
2 changes: 1 addition & 1 deletion reference/mongodb/functions/bson/fromphp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ echo bin2hex($bson), "\n";
&example.outputs;
<screen>
<![CDATA[
0e00000010666f6f000100000000cat
0e00000010666f6f000100000000
]]>
</screen>
</example>
Expand Down
2 changes: 1 addition & 1 deletion reference/mongodb/mongodb/driver/cursor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ stdClass Object
[name] => Vesta
[size] => 525
[distance] => 2.362
}
)
]]>
</screen>
</example>
Expand Down
8 changes: 6 additions & 2 deletions reference/spl/splobjectstorage/rewind.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ while($s->valid()) {
&example.outputs.similar;
<screen>
<![CDATA[
int(1)
int(0)
object(stdClass)#2 (0) {
}
string(2) "d1"
object(stdClass)#3 (0) {
}
string(2) "d2"
]]>
</screen>
</example>
Expand Down
2 changes: 1 addition & 1 deletion reference/uri/uri/whatwg/url/getquery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ echo $url->getQuery();
&example.outputs;
<screen>
<![CDATA[
foo=bar
foo/bar
]]>
</screen>
</example>
Expand Down
2 changes: 1 addition & 1 deletion reference/wincache/functions/wincache-ucache-delete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var_dump(wincache_ucache_delete($array2));
<screen>
<![CDATA[
array(4) { [0]=> string(5) "green"
[1]=> string(4) "Blue"
[1]=> string(4) "blue"
[2]=> string(6) "yellow"
[3]=> string(4) "cyan" }
]]>
Expand Down
2 changes: 1 addition & 1 deletion reference/yaf/yaf-config-ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ var_dump($config->get("database.params.username"));
<![CDATA[
string(15) "dev.example.com"
string(6) "dbname"
string(7) "devuser
string(7) "devuser"
]]>
</screen>
</example>
Expand Down
2 changes: 1 addition & 1 deletion reference/yar/examples.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var_dump($client->add(1, 2));
var_dump($client->call("add", array(3, 2)));


/* __add can not be called */
/* _add can not be called */
var_dump($client->_add(1, 2));
?>
]]>
Expand Down