PHP: Operadores Lógicos - Manual - PHP: Hypertext Preprocessor
To assign default value in variable assignation, the simpliest solution to me is: It works because, first, $v is assigned the return value from my_function(), then this value is evaluated as a part of a logical operation:...