PHP code example of danielescherzer / define-deprecated
1. Go to this page and download the library: Download danielescherzer/define-deprecated library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
danielescherzer / define-deprecated example snippets
use function DanielEScherzer\DefineDeprecated\define_deprecated;
define_deprecated( 'MY_CONSTANT', true, 'Do not use this', '1.0' );
// This will output "bool(true)", and on PHP 8.5+ also emit deprecation warnings
var_dump( MY_CONSTANT );