On Sat, 31 Jul 2004 18:24:06 -0700, bruce <[EMAIL PROTECTED]> wrote: > specifically, i'm looking to return an object using the socket_write(). this > requires that i be able to give it the size of the object being passed... > > if you know of another approach, i'm more than interested... > > -thanks >
serialize() it, then get the size of the string, send it, and deserialize() it on the other side. > > > > -----Original Message----- > From: raditha dissanayake [mailto:[EMAIL PROTECTED] > Sent: Saturday, July 31, 2004 6:16 PM > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] function similar to to sizeof > > bruce wrote: > > >does php have a function similar to the 'C' sizeof function... > > > > > yep in PHP 5 but it's just an alias for count. > > >i'm looking to copy an object, and i'd like to be able to copy it at the > >binary level.... > > > > > So how about using the clone feature of PHP5 instead of doing this manually. > > >but i need to be able to determine the size of the object... > > > > > not sure why you want to do that. > > >any thoughts/comments..??? > > > > > > quick and dirty way to copy and object serialize it into a string and > deserialize it back again. > > >thanks > > > >-bruce > > > > > > > > -- > Raditha Dissanayake. > ------------------------------------------------------------------------ > http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload > Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader > Graphical User Inteface. Just 128 KB | with progress bar. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php