<?php $amount = '10,95'; $cents = explode(',', $amount); if (!isset($cents[0])) $cents[1] = '00'; $cents = implode($cents); echo $cents;
You have javascript disabled. You will not be able to edit any code.