Re: [PHP] really no way to get byte size of variable?

This is a discussion on Re: [PHP] really no way to get byte size of variable? within the PHP General forums, part of the PHP Programming Forums category; Petre Agenbag <internet@vsa.co.za> wrote: > Hi List > Just want to make sure: > > ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-17-2003
Curt Zirzow
 
Posts: n/a
Default Re: [PHP] really no way to get byte size of variable?

Petre Agenbag <internet@vsa.co.za> wrote:
> Hi List
> Just want to make sure:
>
> Is there no way for me to easily determine the byte size occupied by a
> variable (regardless of type)?
>
> It might be trivial, or I'm missing the point (as per usual)...


I think I'm missing the point. I'm not sure exaclty how or why you want
to know the actual size in bytes the paticular variable is.

>
> I would like to find the actual byte size that is transmitted when say a
> $_POST variable is sent, or how much memory a particular variable is taking
> up.
>
> Just want to make sure. Some of the post received so far suggest that "one
> character = one byte" etc, but I would love to work with something more
> precise if possible, also, is a variable contains a multi-dimensional array,
> would that "one character = one byte" formula still return a fair
> representation?


yes

Curt
--

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:10 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0