Is it illegal to assign some object to static property?
I am getting HTTP 500 error in below code.
require_once(\'class.linkedlist.php\'); class Sin
you should take care, that you don't override the static property on each instantiation of a object, therefore do:
class SinglyLinkedlistTester { private static $ll; public function __construct() { if (!self::$ll) self::$ll = new Linklist(); } }