difference between implode and serialize

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sathish.hc
Forum Newbie
Posts: 15
Joined: Tue May 23, 2006 2:55 am

difference between implode and serialize

Post by sathish.hc »

Hi,

I am confused which one to use implode or serialize.

What is difference between them?
which one is better?
AshrakTheWhite
Forum Commoner
Posts: 69
Joined: Thu Feb 02, 2006 6:47 am

Post by AshrakTheWhite »

serialize() returns a string containing a byte-stream representation of value that can be stored anywhere.


Returns a string containing a string representation of all the array elements in the same order, with the glue string between each element.

Code: Select all

serialize()
implode()

RTM ;)
Post Reply