I am trying to validate a user input PHP variable name like $as_cap['abc']
at insert time.
I have to check whether the variable name format is right or wrong. Please help me on that. Curr ently I use
eregi("^[a-z0-9_.'-]{1,50}$")
but it's not working.