Are there any requirements regarding spaces in type casting? There is the requirement: Type casting operators MUST NOT have any space within the parentheses But what about the space between the type and the expression? I.e. $intValue = (int) $input; or $intValue = (int)$input;