$function_name = 'imagecreate';
$class = new ReflectionFunction($function_name);
$extension = $class->getExtension();
echo $extension;
$function_name = 'imagecreate';
$class = new ReflectionFunction($function_name);
$extension = $class->getExtension();
echo $extension;