PHP 8.5.0 Alpha 4 available for testing

Voting

: five minus one?
(Example: nine)

The Note You're Voting On

phpcoder
10 years ago
Regarding "Neither functions nor constants can be imported via the use statement." Actually you can do it in PHP 5.6+:

<?php

// importing a function (PHP 5.6+)
use function My\Full\functionName;

// aliasing a function (PHP 5.6+)
use function My\Full\functionName as func;

// importing a constant (PHP 5.6+)
use const My\Full\CONSTANT;
?>

<< Back to user notes page

To Top