I am trying to instert an integer into a form. Users are asked to input there promo number which is in the format 12.2-9999. I only want to insert 9999 into the column in my database but I am getting -9999 in the columns. I am not sure if I should use preg_replace or something else here?
Share
Just use
explode(), like so:Now
$promowill contain9999.