CS267
Chris Pollett
Mar 3, 2021
sses -> ss ies -> i ss -> ss //sas both sides the same says stop applying rules if see ss s ->All the rules are applied in sequence, if there was a change they are reapplied until no change. The result is the stemmed term.
class MyClass { public $field_var1; public $field_var2 = 5; ... const $constant1; const $constant2; ... function __construct($arg1, $arg2) { //constructor code } function myFun1() { // code } ... }
require "MyClass.inc"; //or more likely require_once "MyClass.inc";
public $my_variable = 0;
function __construct($n=0) { $this->my_variable = $n; }
public $my_field1; var $my_field2; private $my_field3; protected function myMethod() { /* some code*/}
class Foo{ static $bob=1;} echo "bob: ".Foo::$bob;
class Goo{ const BLOB=1;}
Goo::BLOB
define("PI", 22/7); echo PI;