Serialization and Deserialization.
serialize is a inbuild method in php .It is used to convert any object in to string.
Using unserialize() conveting the serialized string into its own format.
For example,
class serializeClass
{
public $fname;
public $lname;
public $email;
}
class serializeClass1 extends serializeClass
{
public $name;
}
$myserializeObject = new serializeClass1();
$myserializeObject->name = "prabhuname";
$myserializeObject->fname = "prabhu";
$myserializeObject->lname = "kalaiselvam";
$myserializeObject->email = "prabu@gmail.com";
if you want to convert the object "$myserializeObject" into string
,Using serialize () method u can convert it .
serialize($myserializeObject). the class object was converted in to string.
if u want to de serialize you can use unserialize($myserializeObject).
Thursday, January 04, 2007
Tuesday, January 02, 2007
select user_id, user_fname, user_lname
into outfile 'prabu.csv'
fields terminated by ',' optionally enclosed by '"'
lines terminated by '\n'
from cwf_users
this is used to export the data as csv file and saved in
"C:\Program Files\MySQL\MySQL Server 5.0\data\prabu.csv" if you are installed mysql in c directory
into outfile 'prabu.csv'
fields terminated by ',' optionally enclosed by '"'
lines terminated by '\n'
from cwf_users
this is used to export the data as csv file and saved in
"C:\Program Files\MySQL\MySQL Server 5.0\data\prabu.csv" if you are installed mysql in c directory
Subscribe to:
Posts (Atom)