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