> >

Re: PHP class class Usage Summary

time:13-07-05 forum:PHP tools and code
  Family extension of a class: the advanced function of a class:

, object clone:
when cloned an object's instance, the initial value of its attribute inherits the current value of the cloned object.
class test
{
public $p=5;
function __clone () {/ / only play a role in the occurrence of clones. Used to change some values
$this- at the time of cloning
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

prev:An introductory PHP Class article next:To save the sick child, the 63 year old ...
post comments
Notice



Approved   The age of mortgage repayment is rai...   What do you do with a baby crying ou...   39 years old as a girl! Takizawa Mak...   Have you ever eaten steamed pagoda f...   93 year old math professor returns t...
rand   How do you grab and analyze the page...   Processing techniques for PHP passin...   Four ways of transferring parameters...   The difference of PHP array traversa...   PHP gets the intersection and differ...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com