modX.toPlaceholder

Skip to end of metadata
Go to start of metadata


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');

See Also

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.