docs:programming:php:php_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:programming:php:php_notes [2007/04/01 22:34] billhdocs:programming:php:php_notes [2008/08/03 00:25] (current) – external edit 127.0.0.1
Line 40: Line 40:
  echo ${$var[1]};  // array example  echo ${$var[1]};  // array example
 </code> </code>
 +
  
 ===== Objects ===== ===== Objects =====
Line 66: Line 67:
 } }
 </code> </code>
-More information is available at http://www.php.net/oop+More information is available at
 +  * (PHP4) http://us3.php.net/manual/en/language.oop.php 
 +  * (PHP5) http://us3.php.net/manual/en/language.oop5.php
  
  
Line 214: Line 217:
 ===== accessing class members from another function ===== ===== accessing class members from another function =====
   * if you add a normal function in a file after a class has been defined, and you want to access the members of the class within the normal function, you need to declare the class as "global" first   * if you add a normal function in a file after a class has been defined, and you want to access the members of the class within the normal function, you need to declare the class as "global" first
 +
 +===== require/include =====
 +  * if you use require or include, make sure to use a relative or full path to avoid duplicating a filename already in the php include path (such as DB.php)
 +
  • docs/programming/php/php_notes.1175488460.txt.gz
  • Last modified: 2008/08/03 00:25
  • (external edit)