php tetap saja digitts

preg_replace('/\D/', '', $c)
Matteoweb