Seems like I can't make that the only item in the snippet.
<?php
$number = floatval($input);
$optionsXpld = @explode('&', $options);
$optionsArray = array();
foreach ($optionsXpld as $xpld) {
$params = @explode('=', $xpld);
array_walk($params, create_function('&$v', '$v = trim($v);'));
if (isset($params[1])) {
$optionsArray[$params[0]] = $params[1];
} else {
$optionsArray[$params[0]] = '';
}
}
$output = '$' . number_format($input);
return $output;
Then applied it to my placeholder like so:
[[+tv.propPrice:numberformat]]
Inserts the commas and a dollar sign. Excellent.