I want to remove everthing from a string except the numbers. The strings will be mostly like this, but won't always have letter at the end.

$str = 'D-6430zip';

For the above string, I want the echo results to = 6430