4.2.35. Rename Constant¶
This cobbler renames a constant and replace it with another constant.
4.2.35.1. Before¶
<?php
const A = 1;
echo A;
echo \A;
?>
4.2.35.2. After¶
<?php
const B = 1;
echo B;
echo \B;
?>
4.2.35.3. Parameters¶
Name |
Default |
Type |
Description |
origin |
string |
The constant to rename |
|
destination |
string |
The destination’s constant name |
4.2.35.4. Reverse Cobbler¶
4.2.35.5. Specs¶
Short Name |
Constants/RenameConstant |
Exakat version |
2.3.0 |
Available in |