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 -----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