小编Sek*_*har的帖子

php将字符串转换为方法调用

<?php
  $str = "getList";

  //now by doing something to $str i need to call getList() method any sugesstions 

  function getList(){
    echo "get list called";
  }
?>
Run Code Online (Sandbox Code Playgroud)

php

2
推荐指数
2
解决办法
4736
查看次数

标签 统计

php ×1