Advertisement
BakerMan

Untitled

May 24th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.15 KB | None | 0 0
  1. $input = 'f5843hvgn4854389053409';
  2. $output = '';
  3.  
  4. foreach (str_split($input) as $char)
  5.     if (is_numeric($char)) $output .= $char;
  6.  
  7. echo $output;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement