Home > Backend Development > PHP Tutorial > The variable 'define as you use' function in PWP pwcorr txtpw pw public

The variable 'define as you use' function in PWP pwcorr txtpw pw public

WBOY
Release: 2016-07-29 08:53:45
Original
1470 people have browsed it
The variables in pascal are strictly defined, which is a good feature that can avoid errors and increase the maintainability of the code. But for web development,

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template