Skip to the content
Documentation

PHPOperatorList

No ratings yet

Summary

This setting lists PHP functions and their equivalent template operator names.

Usage

PHPOperatorList[<PHP_function>]=<operator_name>

Description

This setting lists PHP functions and their equivalent template operator names. It is recommended to give operators a different name than the PHP functions, this ensures that all operators follow the same naming guidelines. An added bonus is that you can change the PHP function later on without being required to do template changes.Only one parameter is supported as value and the PHP function must return the result by value and not by reference.

This setting is case sensitive.

Examples

PHPOperatorList[urlencode]=urlencode

This is the default setting.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.