I am having problems using ereg/eregi within a function... The function where I want to use ereg in is then called by another function to generate a page... I get an error saying
Fatal error: Call to undefined function
Is there anything I need to do so that I can use ereg within a function?
If not, or if my question doesn't make any sense, is there any other easy function I can use to basically check if a specific word is contained inside a variable?? something like:
if ( $variable CONTAINS "word" )
Thanks