function_exists php

0 Cevap

I'm trying to write a function that could receive it's second arg a name of a function. In order to validate function's name (that will be used in an eval statement) I use function_exists such as:

if(function_exists($type)){
    $toEval= $type.'(\''.$file.'\');';
  }else{

Ancak gönderilen arg eklemek veya bu kod başarısız (function_exists yanlış döndürür) (varyasyonlar 'bir kez' ile) ihtiyaç olup olmadığını.

0 Cevap