COUNTABLE(3) 1 COUNTABLE(3)The Countable interfaceINTRODUCTION
Classes implementing Countable can be used with the count(3) function.
INTERFACE SYNOPSIS
Countable
Countable
Methods
o abstractpublic int Countable::count (void )
PHP Documentation Group COUNTABLE(3)
Check Out this Related Man Page
SERIALIZABLE(3) 1 SERIALIZABLE(3)The Serializable interfaceINTRODUCTION
Interface for customized serializing.
Classes that implement this interface no longer support __sleep() and __wakeup(). The method serialize is called whenever an instance
needs to be serialized. This does not invoke __destruct() or has any other side effect unless programmed inside the method. When the data
is unserialized the class is known and the appropriate unserialize() method is called as a constructor instead of calling __construct(). If
you need to execute the standard constructor you may do so in the method.
INTERFACE SYNOPSIS
Serializable
Serializable
Methods
o abstractpublic string Serializable::serialize (void )
o abstractpublic void Serializable::unserialize (string $serialized)
Example #1
Basic usage
<?php
class obj implements Serializable {
private $data;
public function __construct() {
$this->data = "My private data";
}
public function serialize() {
return serialize($this->data);
}
public function unserialize($data) {
$this->data = unserialize($data);
}
public function getData() {
return $this->data;
}
}
$obj = new obj;
$ser = serialize($obj);
var_dump($ser);
$newobj = unserialize($ser);
var_dump($newobj->getData());
?>
The above example will output something similar to:
string(38) "C:3:"obj":23:{s:15:"My private data";}"
string(15) "My private data"
PHP Documentation Group SERIALIZABLE(3)
I am trying to analyze the performance of an AIX system. I think I may have a disk I/O issue, but I am asking for help to validate or invalidate this assumption. I ran the commands below during a period of peak load.
Please help me to find any performance bottlenecks. Thanks in advance for your... (15 Replies)
does anyone know how to write a script that will change file permissions. because the Admin blocked me from altering any of my files im only allowed to read and i heard a script like this can bypass it but i dont know how to write it.
Display current users. Display user Ids only.
Display... (10 Replies)
folks,
I have a security related question, to all you. Please share your comments with me.
I have a situation where i was asked to automate the password in my application, which expires every 6 months. In this case i need to generate a random password and set the password on some... (2 Replies)
I am just curious about your opinion on something which I am against.
I work at the client location. Our office is very small (4 employees + 1 teamlead where 1 employee per 12hrs shifts) and we are responsible to process the reception of external files into the client's database via some tools.... (3 Replies)
Hello,
I am pretty new to shell scripts and I recently wrote one that seems to do what it should but I am exploring the possibility of improving its performance and would appreciate some help. Here is what it does - Its meant to monitor a bunch of systems (reads in IPs one at a time from a flat... (9 Replies)
I want to send an email, however I like to subject line of the email to be different, depending on the content or body of the email, is this possible.
Ok - lets say the body of the email will always have the word job name, and depending on the 4,5 and 6 position of the job name, in this case... (1 Reply)
I have gotten myself totally lost trying to sort this out and just need some help please..
I will have a multiple directories using the following naming convention with an undetermined number of files in each directory.
9780743582094_05of5_Accountable.wav
I need to batch rename all files... (5 Replies)
Hi,
I want to mirror root hard disk in SUSE LINUX 10.1.
I have two 80G hard disks, I searched in google but I did not find any good link to describe this.
Please see below info..
Server1:~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 16G... (10 Replies)
(1) Hi, Am working on FreeBSD 7.4/i386 and installed Opera 11.01 through ports collection manually... But when I run first time am getting "opera: cannot connect X server. Error: Unknown error: 0" What is this error all about???? Please help me to sort out this issue!!!
(2) Hi, currently am... (12 Replies)
Never expired for root password
Guy's
I want to change the setting to keep the root password to be nerved expired!
Please advice with the sitting! (9 Replies)
Virtual Machine running on VMWare workstation 9.2
os : RHEL 5.8
RAM : 2.5GB
Swap : 2.6gb
CPU : 1 virtual CPU
Surprizingly I couldn't find much from googling on What exactly does Kernel parameters do ?
I was under the impression that kernel parameters just set the limits/maximum for a... (2 Replies)
In the following command:
find / -ctime +3 -exec rm -R {}\;
how is the recursion list built for the actual rm ?
F'rinstance; I had a case where a user typed this as root using '/' instead of '.' so everything in the root level was going to be traversed. They hit <ctrl>C before too much was... (5 Replies)
What Online Social Networks Do You Use Regularly?
I use Facebook and LinkedIn nearly everyday....
You?
If your online social network is not listed, please do a "write in" vote..
Thanks! (39 Replies)
Why Do We Need Root on the HMC?
In this article in IBMSystems Magazine Rob McNelly asked the question
Why Don't We Have Root on the HMC?
and he goes on to justify why we indeed shouldn't have root - kinda. I think his arguments are not as valid as he perhaps thinks they are and what's more... (11 Replies)
Interesting to read about the origin of the MalWareBytes company.
Link from BBC Business news:
'I kept my multimillion dollar business secret' - BBC News (3 Replies)