Double Underscore in PHP?

后端 未结 5 2014
悲&欢浪女
悲&欢浪女 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:16

    Looks like you're using Wordpress - wp-includes/l10n.php defines __ as a function that translates a string (similar to gettext and its alias, _ but with an optional parameter for explicitly specifying a domain).

提交回复
热议问题