This is my code. It is giving me an error. I am new in OOP in PHP, please help me regarding this particular issue.
Code as following:
<?php
class myclass
{
var $name;
//public $vari="this is my class ";
public function setvalue($newval)
{
$this->$name=$newval;
}
public function getvalue()
{
return $this->name;
}
}
$object= new myclaas;
$object->setvalue("usman");
echo $object->getvalue();
?>
Error as following:
Fatal error: Class 'myclaas' not found in E:\wamp\www\oops\myclass.php on line 19