Here’s the situation i’m passing a object through several php functions.
I m looking for the best performance so i was wondering is serialization a good way to do it or is serialization not necessary?
Here’s the situation i’m passing a object through several php functions. I m looking
Share
If you are passing an object through several ‘functions’ then you don’t need to serialise – this will be in memory in the PHP parser and serialization will just be a waste.
If you need to pass the value from one script page to another, then serialization is an option as the variables in the first script will be out of scope in the second script.
Most of the time you don’t need to do this – what exactly are you trying to do?