I'm studying php7 and I've seen somewhere that it's now possible to use external function variables, but they're in the same file. From what I remember it was something like this:
<?php
$agua = '1 Litro';
function listaDeCoisas($item1,$item2) use $agua{
return 'Lista: '.$item1.','.$item2.', Agua: '. $agua;
}
I want to know if this is really possible and how to use it!