Skip to content

Instantly share code, notes, and snippets.

@hsleonis
Created March 22, 2016 12:23
Show Gist options
  • Select an option

  • Save hsleonis/6a0dc5a8e32220830aab to your computer and use it in GitHub Desktop.

Select an option

Save hsleonis/6a0dc5a8e32220830aab to your computer and use it in GitHub Desktop.
Sets the value of a configuration option
<?php
/*
Pattern: string ini_set ( string $varname , string $newvalue )
Documentation: http://php.net/manual/en/function.ini-set.php
*/
echo ini_get('display_errors');
if (!ini_get('display_errors')) {
ini_set('display_errors', '1');
}
echo ini_get('display_errors');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment