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

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

WBOY
WBOYOriginal
2016-12-01 00:56:191733browse

$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;

Statement:
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