WEB19 hours ago · This has been supported for classes and interfaces since PHP 5.0, for arrays since PHP 5.1, for "callables" since PHP 5.4, and scalar (integer, float, string and boolean) types since PHP 7.0. [70] PHP 7.0 also has type declarations for function return types, expressed by placing the type name after the list of parameters, preceded by a colon. [69]