update the output of the example. thanks to jsgoupil

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@192385 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2005-08-04 10:59:37 +00:00
parent e49fb9ea2f
commit f1f445c6c6
2 changed files with 18 additions and 8 deletions

View file

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<refentry id="function.class-implements">
<refnamediv>
<refname>class_implements</refname>
@ -101,19 +101,24 @@ function __autoload($class_name) {
require_once $class_name . '.php';
}
// use __autoload to load the 'not-loaded' class
print_r(class_implements('not-loaded', true));
// use __autoload to load the 'not_loaded' class
print_r(class_implements('not_loaded', true));
?>
]]>
</programlisting>
&example.outputs;
&example.outputs.similar;
<screen>
<![CDATA[
Array
(
[foo] => foo
)
Array
(
[interface_of_not_loaded] => interface_of_not_loaded
)
]]>
</screen>
</example>

View file

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry id="function.class-parents">
<refnamediv>
<refname>class_parents</refname>
@ -100,18 +100,23 @@ function __autoload($class_name) {
require_once $class_name . '.php';
}
// use __autoload to load the 'not-loaded' class
print_r(class_parents('not-loaded', true));
// use __autoload to load the 'not_loaded' class
print_r(class_parents('not_loaded', true));
?>
]]>
</programlisting>
&example.outputs;
&example.outputs.similar;
<screen>
<![CDATA[
Array
(
[foo] => foo
)
Array
(
[parent_of_not_loaded] => parent_of_not_loaded
)
]]>
</screen>
</example>