PHP 8.2.20 Released!

Voting

: four minus two?
(Example: nine)

The Note You're Voting On

narada dot sage at googlemail dot com
17 years ago
To access the value of a class constant use the following technique.

<?php

class a {
const
b = 'c';
}

echo
constant('a::b');

// output: c

?>

<< Back to user notes page

To Top