Jump to content

php functions.


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...