terminal print php memory limit code example Example: get php memory limit command line php -i | grep "memory_limit"