<?php
class TestClass
{
protected $link;
private $server, $username, $password, $db;
/*
public function __construct()
{
$this->server = $server;
$this->username = $username;
$this->password = $password;
$this->db = $db;
$this->connect();
}
*/
public function connect()
{
echo "connn";
}
/* public function __sleep()
{
echo "kkkkkkk";
}
*/
public function __wakeup()
{
echo " in wakeup";
}
}
$class = new TestClass('Hello');
$class1=&$class;
unset($class);
$x=serialize($class1);
$class1=unserialize($x);
?>
Return to Kesavan Muthuvel's home page. Please send comments on these web pages to hi@kesavan.info (or) Feedback here CopyLeft (Ͻ) 2008 - 2023 Kesavan Muthuvel More on CopyLeft |