Re: calculate bytes in string

From: Date: Sun, 10 Nov 2002 00:05:46 +0000
Subject: Re: calculate bytes in string
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-123637@lists.php.net to get a copy of this message
Well I tried that, however I was saving dynamically generated .XLS files. Because I was using addslashes before hand it was reporting the wrong file size. So it was my mistake, thanks for your help! Regards, Ian Newlands "Jason Wong" <php-general@gremlins.com.hk> wrote in message news:200211091639.43919.php-general@gremlins.com.hk... > On Saturday 09 November 2002 14:22, Ian Newlands wrote: > > Does anyone know of a function, or a method to calculate how many bytes are > > in a string? Similar to the filesize file system function. > > > > Any help would be appreciated. > > Assuming 1 character = 1 byte, then strlen().

« previous php.general (#123637) next »