php5: naming datatype slight parameters


i have duty looks this



class nsnode {
duty insertafter(nsnode $node) {
...
}
}


i'd means duty infer node being extrinsic during start, therefore after nothing. proceed i cruise that null means "nothing", i'd duty this:



$mynode->insertafter(null);


except php throws an blunder observant awaiting an nsnode object. i'd hang controlling despotic information typing function, nonetheless means mention null-esque value.



so, brief changing function insertafter($node) { }, there proceed i pass something else function?






update: i've supposed owen's answer since answered doubt itself. everybody else's suggestions unequivocally good i'll indeed implementing project, thanks!



Comments

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?