3 ms·
It is not more powerful. You cannot do this for example: function hello($name='Joe',$title='dear') { echo "Hello $title $name"; } hello
by TekMol 6y ago
It is not more powerful. You cannot do this for example:
function hello($name='Joe',$title='dear')
{
echo "Hello $title $name";
}
hello('Sue');
Try here: https://3v4l.org/6MZHh https://3v4l.org/6MZHh
With your object properties approach, you always have to use the variable "names".
- bmn__ 6y agoMixing implicit positional and named parameters is a misfeature. The named parameters should have a distinct syntax like other systems do, e.g. :$ twigil.