Re: Size of a string

From: Date: Wed, 05 Jul 2000 13:06:49 +0000
Subject: Re: Size of a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4923@lists.php.net to get a copy of this message
In this case it is since 1 char = 1 byte, I was just looking for something designed exactly to figure out how many bytes the string is using. Strlen will work though. Corey On Wed, 5 Jul 2000, Andy Woolley wrote: > Is that not the same thing? > > Andy > > ----- Original Message ----- > From: "Corey Mosher" <corey@hub.org> > To: <php-general@lists.php.net> > Sent: Wednesday, July 05, 2000 1:53 PM > Subject: Re: [PHP] Size of a string > > > > No, I mean the size in bytes, not the length. Sizeof in c determines > > the size in bytes, strlen determines the length. > > > > Corey > > > > On Wed, 5 Jul 2000, Daniel Gustafsson wrote: > > > > > At 08:33 AM 7/5/00 -0400, you wrote: > > > >Hello, > > > > Does anyone know how to get the size in bytes of a string? > > > >Is there a function similar to the c function sizeof? > > > > > > You mean the length of the string?.. strlen(), that's what you use in C > too =) > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > Corey Mosher > > Hub.Org Networking Services > > Wolfville, NS > > Canada > > corey@hub.org > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > Corey Mosher Hub.Org Networking Services Wolfville, NS Canada corey@hub.org

« previous php.general (#4923) next »