Michael Daly skrev:
Rolf Lampa wrote:
But is operator absent expressions (user defined operators like "A isblort") possible in PHP?
What I wrote was intended as structured English rather than a specific language.
Ups, since I'm not a native English speaker I'm not sure of what you really mean.
Lets say that "Exist" is a variable or a constant and "IsBlort()" is a function, then the expression below still works as expected in a short-circuited evaluation, like so:
// IsBlort will be evaluated only if Exist = true // otherwise nothing happens.
if ( Exist *and* IsBlort() ) { // code will execute here only if both Exist and IsBlort = true }
Is this what you meant?
Regards,
// Rolf Lampa