Jump to content

php functions.


Kristian_C

Recommended Posts

I think you should explain abit more on functions like strlen and ereg, etc on the strlen function you chould explain not just how to return the lenght but also how to stop the lenght of the post etc if i want to have a shoutbox or something but i dont want my visitors to write more then 200-600 characters then you chould explain how to do that, or how to have a minimum limit of characters. It should not be a problem for a coder to figure out that himself but if a neewbie like me dident know how the he** i chould do it, then it whould be great to just go onto w3schools and read about it.And on ereg you chould write like how i chould use ereg with numbers like ^0-9 or just normal ^A-Za-z if you understand what i meen... not that you should write down every thing for us but just explain abit more, maybe you have it somewhere but i havent found it yet and i whould love to know :) hehe...->Kristian_C

Link to comment
Share on other sites

Strlen is only for determining string length, if you want to get part of a string then you can use the substr or substr_replace functions.
i allways use strlen to have limmits of posts/usernames ++..may be useing it tho check lenght in the new forum im makeing tho but now i just use for limmits.->Kristian_C.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...