Forget about the serialized variables. Serializing is done to store an object (often an aray) as a single value. You do not perform operations on a serialized field.
You restore the original object (an array in your case) using unserialize() and perform your operations on the restored object.
To troubleshoot your problem please provide a var_dump of the (unserialized) array.
|