# String as function?

**URL:** <https://forum.kirupa.com/t/string-as-function/269329>\
**Category:** Uncategorized\
**Created:** [August 26, 2008, 9:06am UTC](https://forum.kirupa.com/t/string-as-function/269329 "2008-08-26T09:06:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [August 26, 2008, 9:06am UTC](https://forum.kirupa.com/t/string-as-function/269329/1 "2008-08-26T09:06:34Z")

</div>

Hello!

I have an XML for the items on a menu. I’d like each item call a different function, and have the function name written on the xml.

How would you approach this? Something like (my\_str as function) or maybe using eval??

Regards

Pier
