<ol
class
=
"dp-xml"
>
<li
class
=
"alt"
><span><strong><font color=
"#006699"
><span
class
=
"tag"
></span><span
class
=
"tag-name"
>php</span></font></strong><span> </span></span></li>
<li
class
=
""
><span>
<li
class
=
"alt"
><span>classA </span></li>
<li
class
=
""
><span>{ </span></li>
<li
class
=
"alt"
>
<span>
var
$</span><span
class
=
"attribute"
><font color=
"#ff0000"
>one</font></span><span>=</span><span
class
=
"attribute-value"
><font color=
"#0000ff"
>1</font></span><span>; </span>
</li>
<li
class
=
""
><span> </span></li>
<li
class
=
"alt"
><span>functionshow_one() </span></li>
<li
class
=
""
><span>{ </span></li>
<li
class
=
"alt"
>
<span>
echo
$this
-</span><span
class
=
"tag"
><strong><font color=
"#006699"
>></font></strong></span><span>one; </span>
</li>
<li
class
=
""
><span>} </span></li>
<li
class
=
"alt"
><span>} </span></li>
<li
class
=
""
><span> </span></li>
<li
class
=
"alt"
><span>
<li
class
=
""
><span>
include
(
"classa.inc"
); </span></li>
<li
class
=
"alt"
><span> </span></li>
<li
class
=
""
>
<span>$</span><span
class
=
"attribute"
><font color=
"#ff0000"
>a</font></span><span>=</span><span
class
=
"attribute-value"
><font color=
"#0000ff"
>newA</font></span><span>; </span>
</li>
<li
class
=
"alt"
>
<span>$</span><span
class
=
"attribute"
><font color=
"#ff0000"
>s</font></span><span>=</span><span
class
=
"attribute-value"
><font color=
"#0000ff"
>serialize</font></span><span>(
$a
); </span>
</li>
<li
class
=
""
><span>
<li
class
=
"alt"
>
<span>$</span><span
class
=
"attribute"
><font color=
"#ff0000"
>fp</font></span><span>=</span><span
class
=
"attribute-value"
><font color=
"#0000ff"
>
fopen
</font></span><span>(
"store"
,
"w"
); </span>
</li>
<li
class
=
""
><span>
fputs
(
$fp
,
$s
); </span></li>
<li
class
=
"alt"
><span>fclose(
$fp
); </span></li>
<li
class
=
""
><span> </span></li>
<li
class
=
"alt"
><span>
<li
class
=
""
><span>
<li
class
=
"alt"
><span>
include
(
"classa.inc"
); </span></li>
<li
class
=
""
><span> </span></li>
<li
class
=
"alt"
>
<span>$</span><span
class
=
"attribute"
><font color=
"#ff0000"
>s</font></span><span>=</span><span
class
=
"attribute-value"
><font color=
"#0000ff"
>implode</font></span><span>(
""
,@file(
"store"
)); </span>
</li>
<li
class
=
""
>
<span>$</span><span
class
=
"attribute"
><font color=
"#ff0000"
>a</font></span><span>=</span><span
class
=
"attribute-value"
><font color=
"#0000ff"
>unserialize</font></span><span>(
$s
); </span>
</li>
<li
class
=
"alt"
><span> </span></li>
<li
class
=
""
><span>
<li
class
=
"alt"
>
<span>
$a
-</span><span
class
=
"tag"
><strong><font color=
"#006699"
>></font></strong></span><span>show_one(); </span>
</li>
<li
class
=
""
>
<span></span><span
class
=
"tag"
><strong><font color=
"#006699"
>?></font></strong></span><span> </span>
</li>
</ol>