- trim: documentation ( source)
<?php
$foo = function (string $bar) {
if (is_trusted($bar)) {
echo "it's trusted!\n";
} else {
echo "it can't be trusted!\n";
}
};
$baz = trim(' literal string that gets manipulated ');
$foo('literal string not manipulated');
$foo($baz);