4
I’m studying php7 and I saw somewhere that it’s now possible to use external function variables, but they’re in the same file. As I recall 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!