seems verbose, difficult to handle, and not agile enough. If you use Variant to solve it, it will bring a performance loss in type conversion.
The PWP engine has built-in mapping support for some common data types. By using specially named variable names to directly infer its data type,
can be automatically applied in the program without defining it in advance.
are as follows:
str_xxxx, corresponding to String, such as str_1, str_a, str_key
int_xxxx, corresponding to integer,
bool_xxx, corresponding to boolean,
u int_xxx , corresponding to cardinal ,
ptr_xxxx , corresponding to pointer
jso_xxxx , corresponding to TJsonObject ,
The above types are automatically translated by the compiler before compilation, which can greatly improve development efficiency.
The above has introduced the "define as you use" function of variables in PWP, including pw and variable content. I hope it will be helpful to friends who are interested in PHP tutorials.