The variables inside Pascal are strictly defined and are a good feature to avoid errors and increase the maintainability of the code. But for Web development,
It seems verbose and difficult to handle, not agile enough. If a Variant is used, the performance penalty for type conversion is also introduced.
The PWP engine has built-in mapping support for some common data types, directly inferring his data type by using a specially named variable name,
can be applied automatically in the program, no need to define in advance.
The following are the differences:
Str_xxxx, corresponding to String, such as str_1, Str_a, Str_key
Int_xxxx, corresponding to Integer,
Bool_xxx, corresponding to Boolean,
Uint_xxx, corresponding to cardinal,
PTR_XXXX, corresponding pointer
Jso_xxxx, corresponding to Tjsonobject,
The above type is automatically completed by the compiler before compiling the translation work, can greatly improve the development efficiency.
The above describes the variables in PWP "along with the definition" function, including the content of PW, variables, I hope to be interested in PHP tutorial friends helpful.