$error_reporting_value = ini_get('error_reporting'); echo 'The current value of error_reporting is: ' . $error_reporting_value;
The current value of error_reporting is: E_ALL
$upload_max_filesize_value = ini_get('upload_max_filesize'); echo 'The current value of upload_max_filesize is: ' . $upload_max_filesize_value;
The current value of upload_max_filesize is: 2MIn this example, we use the "ini_get" function to retrieve the value of the "upload_max_filesize" configuration option. Again, note that the "ini_get" function is part of the PHP core, so it doesn't require any external package or library.