<?php
class klasa {
public function funkcja($x = 'default', $y = 'value')
{
var_dump($x);
var_dump($y);
}
}
$x = new klasa;
$x->funkcja('other value');
As on the picture, how to omit first parameter which has his default value and only affect second one?
I tried $x->funkcja(NULL, 'other value');
doesn't work, $x->funkcja(, 'other value');
doesn't work too.
How to achieve it?