> >

Re: PHP class class Usage Summary

time:13-07-05 forum:PHP tools and code
  Five, class constant:
if class attributes are understood as variables in a class, then class constants and variables are different, and their definitions are:
class test{
private $a;
const PI = '3.14';
... ..
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
  • 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   Ji'nan public security web site on t...   Reminder: Taobao's new scam, do not ...   Recruitment of job search websites i...   Ji'nan related blog collection   Nine cases of individual advisable h...
rand   PHP decryption of Unicode coded char...      How to optimize Mysql tens of millio...   Formal release of PHP 5.3.6   Generating HTML static pages with PH...
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