Home > Backend Development > PHP Tutorial > 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?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2023-03-01 20:40:02
Original
1866 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
Latest Issues
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
thinkphp versions supported by php6
From 1970-01-01 08:00:00
0
0
0
thinkphp upload files
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template