$instance = new $className(); // new SimpleClass() ?> PHP 8.0.0 起,支持任意表达式中使用 new 。如果表达式生成一个string,这将允许更复杂的实例化。
確定! 回上一頁