Mecha CMS

Helper functions.

t

Trim string from characters once.

2.0.02.2.0

t(string $in, string $start = '"', string $end = null);

Example:

$A = t('"""abcdef"""', '"');
$B = t('"""abcdef"""', '""');
$C = t('"""abcdef"""', '""', '"');

Result:

$A = '""abcdef""';
$B = '"abcdef"';
$C = '"abcdef""';