NYCPHP Meetup

NYPHP.org

[nycphp-talk] Pt III: Variables, functions, classes, methods, confused!

David Rydell drydell at worldnet.att.net
Wed Oct 15 14:19:23 EDT 2003


if $myClass = new MyClass('graduation_month'), then you'd end up with:


 function myFunction() {

	global $graduation_month
  ...
 }

what you want is:

 function myFunction() {
  ...
	use $this->monthVar
  ...
 }

}

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003




More information about the talk mailing list