php 中常见的函数及系统常量

1、判断是否存在某函数:

function_exists('memory_get_usage');

2、统计程序执行到某节点消耗的系统内存:

memory_get_usage();

3、当前访问目录的地址

__DIR__;

原文地址:https://www.cnblogs.com/handongyu/p/6149174.html