<?php
/**
* Example: Get Specific Configuration Values
*
* This example demonstrates how to retrieve specific configuration
* values using the get() method.
*/
// Include the BetterPhpInfo class
require_once 'BetterPhpInfo.php';
// Create instance
$betterPhpInfo = new BetterPhpInfo();
echo "<h2>Get Configuration Values Example</h2>";
// 5 simple get queries
echo "[memory_limit]: " . $betterPhpInfo->get('memory_limit') . "<br>";
echo "[php_version]: " . $betterPhpInfo->get('php_version') . "<br>";
echo "[upload_max_filesize]: " . $betterPhpInfo->get('upload_max_filesize') . "<br>";
echo "[session_save_handler]: " . $betterPhpInfo->get('session_save_handler') . "<br>";
echo "[opcache_enable]: " . $betterPhpInfo->get('opcache_enable') . "<br>";
?>
|