Double Underscore in PHP?

后端 未结 5 2018
悲&欢浪女
悲&欢浪女 2020-11-30 09:17

What does the double underscores in these lines of PHP code mean?

$WPLD_Trans[\'Yes\']=__(\'Yes\',$WPLD_Domain);
$WPLD_Trans[\'No\']=__(\'No\',$WPLD_Domain);         


        
5条回答
  •  长情又很酷
    2020-11-30 10:11

    As mentioned it is generally used for translating text between languages but really it is used in the same context as any function call.

    testfunction();
    

    is no different then

    __();
    

提交回复
热议问题