Created
June 6, 2020 09:15
-
-
Save huuyafwww/b044bfa3463011ecf3c563fcb9184532 to your computer and use it in GitHub Desktop.
Revisions
-
huuyafwww created this gist
Jun 6, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ <pre> <?php $define_names = [ "A" => "a", "B" => "b", "C" => "c", "D" => "d", "E" => "e", ]; foreach( $define_names as $define_name => $var ){ define( $define_name, $var ); } print_r( get_defined_constants() );