<?php $value = '-2'; var_dump(preg_replace('/\D+/', '', $value));
You have javascript disabled. You will not be able to edit any code.