PHP 8.1.0 RC 3 available for testing

Voting

Please answer this simple SPAM challenge: one minus one?
(Example: nine)

The Note You're Voting On

php at webflips dot net
7 years ago
It is perfectly valid to use a built-in PHP keyword as a constant name - as long as you the constant() function to retrieve it later:

<?php
define
('echo', 'My constant value');

echo
constant('echo'); // outputs 'My constant value'
?>

<< Back to user notes page

To Top