Jump to content

how to write generic class


Recommended Posts

i want to write a generic class say it should contain name,comments and also name field should take only 20 chars and comment field should take 40 chars and also neccessay validation must be done for example name should take only alphabetic chars .....comments should allow only some of the special chars...etc please guide me how to do it.

Link to comment
Share on other sites

I mean this politely... but we are not here to write all your code for you. As one of the few that reply in the PHP forum here, I simply don't have time to write everyone's code for them, especially if it involves something that I don't know much about and would have to do research/experimentation to figure out. Nearly all of your posts are "I want to do ___, tell me how to do it." We are happy to help, but please start by doing a little research (Google is your friend), getting as far as you can, and showing us what you have done so far.


What have you done so far on this?

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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.

  • Create New...