Forum Moderators: coopster
$price = substr($price,0,20);
However, it only works with letters and produces no value if the server passes -12.99
Is there anyway to limit the size to prevent buffer overflow attacks? I believe by checking string length then using an if/else concept won't be safe enough.
Any thoughts?
Thanks
J