How to create a constant in PHP. Code example open

How to create a constant in PHP. Code example

Create a constant:

define('CONSTNAME', 'Earl');
//or
const CONSTNAM = 'Earl';

return value of the constant:

echo CONSTNAME;
0

More

Leave a Reply

Your email address will not be published. Required fields are marked *

How many?: 22 + 22

lil-code© | 2022 - 2024
Go Top
Authorization
*
*
Registration
*
*
*
*
Password generation