Can't use function return value in write context

The following located within a PHP class:

private function verifyParameters() {

	return isset(getDatabase(), getUser(), getPassword(), getHost());

}

returns the error: Can’t use function return value in write context.

What am I missing. Seems ok to me.

Appreciate much any help on this.

Bruce

I just ready that isset and empty CAN’T be used inside functions.

Problem closes

Oh my, I was juggling with this for quite some time since OP states it does not work. But it does! You only need PHP >= 5.5

Sponsor our Newsletter | Privacy Policy | Terms of Service