Remove string mask
<?php $masked_input = '30.029.920-19'; preg_replace('/[^0-9]/', '', $masked_input);