RE: [PHP] function similar to to sizeof

From: Date: Sun, 01 Aug 2004 01:24:06 +0000
Subject: RE: [PHP] function similar to to sizeof
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-192424@lists.php.net to get a copy of this message
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:jabber@raditha.com] Sent: Saturday, July 31, 2004 6:16 PM Cc: php-general@lists.php.net 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

« previous php.general (#192424) next »