2
I want to know if I can call a function inside a script from the command line, using for example:
$ php script.php minhaFunção() <argumento>
in the case, the function is not within a class (it is necessary to be?)
Below my code:
<?php
function dobro($valor) {
$resultado = $valor + $valor;
echo $resultado;
}