Think about the L() function in PHP. What is its main function? It feels like it is rarely used?

WBOY
Release: 2023-03-01 20:40:02
Original
1805 people have browsed it

$rules = array(
array('verify','require',L('VERIFY_CODE_MUST')), array('name','',L('ACCOUNT_EXISTS'),0,'unique',1), );

L('VERIFY_CODE_MUST')//The L function called here, what is the use of the L function?

Reply content:

$rules = array(
array('verify','require',L('VERIFY_CODE_MUST')), array('name','',L('ACCOUNT_EXISTS'),0,'unique',1), );

L('VERIFY_CODE_MUST')//The L function called here, what is the use of the L function?

Get and set language definition;
You can view the source code to learn more;

I feel that it is rarely used because domestic projects are developed using thinkphp;
There are not many multi-language supports;

One more thing; if you are not developing a website that requires multiple languages, it is indeed rarely used;

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