Posted on August 7, 2013
- /**
- * A PHP Class that does things
- */
- class Class_That_Does_Stuff {
- /**
- * A public class property
- *
- * (variables that float out here are called
- * properties & are accessible everywhere
- * inside the class)
- */
- public $words_to_say = 'do stuff';
- /**
- * A public method
- *
- * (functions in classes are called methods..
- * how pretentious)
- */
- public function do_stuff() {
- }
- }
Recent Comments