Below Example is substr :
$check_allowed = substr($total,35);
Below Example is finding only in numberic value:
echo ereg_replace(“/[^0-9.]/”, “”, $total);
Below Example is convert float :
$check_allowed =(float)$total;
Below Example is finding dollar sign :
$price= $total;
list($symbol, $price) = sscanf($price,’%[^0-9]%s’);
echo var_dump($symbol).'<br />’;
echo var_dump($price);
Below Example is SPlit :
$check_allowed = split(‘;’,$total);
echo $check_allowed[1];
checking if condition :
if($check_allowed[1] >= “10.00”){
?>
<a target=”_parent” href=”<?php echo get_option(‘shopping_cart_url’); ?>” title=”<?php _e(‘Checkout’, ‘wpsc’); ?>”><?php _e(‘Checkout’, ‘wpsc’); ?></a>
<?php
}
else{
?>
<a target=”_parent” href=”javascript:alert(‘Sorry, your order does not meet the minimum order value of €10’);” title=”<?php _e(‘Checkout’, ‘wpsc’); ?>”><?php _e(‘Checkout’, ‘wpsc’); ?></a>
<?php
}
?>