modX::toPlaceholder
Recursively validates and sets placeholders appropriate to the value type passed.
Syntax
API Doc: http://api.modxcms.com/modx/modX.html#toPlaceholder
void toPlaceholder (string $key, mixed $value, [string $prefix = ''], [string $separator = '.'])
Example
Set a placeholder and prefix its key with 'my.'
$modx->toPlaceholder('name','John','my');