Ben bu gibi bir işlevi (burada bütün işlevi yazmak için gerek) yaptı:
public function selectNode($from, $attributes = null, $childs = null)
ve, tabii, ben bu şekilde ararsanız:
$node->selectNode();
The argument $from isn't initialized and then you got a warning error.
I know you can suppress the error doing @$node->selectNode(); or something like that thanks to @.
Ama, ben bunu kendim işlemek istiyorum. How can I do that Eğer mümkün?
Ben buldum tek yolu bu public function selectNode($from = null, $attributes = null, $childs = null) gibi başlayamadı ama o açık ($ diğerleri gibi bir seçenek değildir itibaren) yapmaz.
(Ve tabii ki, bu işlev, burada sadece bir örnektir. Diğer fonksiyonlara uzun olabilir)