PHP Code:
<?php
$item->string = "decimal(6,2)";
$start = strpos($item->string, '(')+1;
$end = strpos($item->string, ',') - strlen($item->string) - 1;
$max = substr($item->string, $start, $end);
echo $start."<br>";
echo $end."<br>";
echo $max.
?>
That does it, nevermind