Re: Knowing size in bytes of an object / a variable ?
| From: | Jason Brooke | Date: | Mon, 24 Jul 2000 10:40:14 +0000 |
| Subject: | Re: Knowing size in bytes of an object / a variable ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7847@lists.php.net to get a copy of this message | ||
> I can't save objects in a file cause I don't know its size.
> So if I want fputs to write the entire object, I can't get it back with
fgets or fread since I must pass a "size" parameter.
>
> Thank you.
but the manual says it reads to length -1 byte, or EOF, whichever comes
first
jason