Forum Moderators: coopster

Message Too Old, No Replies

How do you know length of a string variable PHP

How do you know length of a string variable PHP

         

Imy_S3

10:51 am on Mar 24, 2004 (gmt 0)

10+ Year Member



Hi

I got a form where usser enters details.
This then gets posted to get verfied by another script.

i want to verify so that if the the varible lenght that as been posted is bigger then 15, produce an error.

however i do not know how to check the lenght of the string

Hope you can help
Thanks in advance.

DoppyNL

10:54 am on Mar 24, 2004 (gmt 0)

10+ Year Member



This is to easy to answer, so I'm gonna sent you to the manual!

manual page about strings (you could've thought of that...)

[php.net...]

take a look there, it's got a function list related to strings, wich contains a nice function you can use.

[edited by: jatar_k at 5:31 pm (utc) on Mar. 24, 2004]
[edit reason] linked up url [/edit]