Checking variable length
Moderator: General Moderators
Checking variable length
Apologies is this is obvious, but does anyone know a good function to check a variable's length? I'm trying to enforce my db's type constraints. Thanks in advance.
Re: Checking variable length
You can use strlen to check the length of strings.
Re: Checking variable length
Thanks man I'll give it a try.
Re: Checking variable length
If you have the mbstring module installed (it's quite likely) I'd suggest mb_strlen instead.