[thelist] PHP variable functions

Rich Gray rich at f1central.net
Sat Jan 25 03:51:01 CST 2003


Er.. does strlen($text) not work for you... ?
Rich
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Michael C. Foroobar
Sent: 23 January 2003 22:54
To: thelist at lists.evolt.org
Subject: [thelist] PHP variable functions


Here is my dilemna:
I have a string coming out of a MySQL database and it is put into a PHP
variable which I'll call $text. Counting the words in the string is a
trivial thing, but what I want to do is figure out of the size of the
string in bytes... I can't think of a way to do this in PHP or MySQL, so
any help would be appreciated, especially via ICQ.

---
Xavier
   email: xavier at exit13.f2o.org
   icq:   195454488
   "I am not young enough to know everything." - Oscar Wilde





More information about the thelist mailing list