this may seem like a funny question but how how i call a function when i store the name if a varible e.g.
function getfunc(id)
id() ;
}
havent tested this but i don't think it would work ?
calling functions
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
if is for my xml parser i know what the names are going to be called so i have built a function for each rather than having a big switch statement i hope to just call the function depending on the name like the
opening and closing of the
xml_set_element_handler($xml_parser, "startElement", "endElement");
function
opening and closing of the
xml_set_element_handler($xml_parser, "startElement", "endElement");
function
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
I think that this is what you are looking for:
http://www.php.net/manual/en/functions. ... ctions.php
Mac
http://www.php.net/manual/en/functions. ... ctions.php
Mac