Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $input = 'f5843hvgn4854389053409';
- $output = '';
- foreach (str_split($input) as $char)
- if (is_numeric($char)) $output .= $char;
- echo $output;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement