php convert string to method call

missstar

New Member
\[code\]<?php $str = "getList"; //now by doing something to $str i need to call getList() method any sugesstions function getList(){ echo "get list called"; }?>\[/code\]
 
Back
Top