Hello sir,
i encounter an error in code of oop php for beginners
( ! ) Notice: Use of undefined constant name - assumed 'name' in C:\wamp\www\clss\class_lib.php on line 32
protected function set_name($new_name)
{
if (name != "Jimmy Two Guns ") ---> line 32
{
$this->name = strtoupper($new_name);
}
}
I am new to oop so i really do not know what to with this error... i have codes from your tutorial web site
Thank you!