Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- @Nome: Is_NumericEx,
- @Função: Procura por número em uma string.
- @Créditos: [iPs]SuYaNw.
- */
- function Is_NumericEx($str)
- {
- for($j = 0; $j != count($str); ++$j)
- {
- if($str[$j] == '0' || $str[$j] == '1' || $str[$j] == '2' || $str[$j] == '3' ||
- $str[$j] == '4' || $str[$j] == '5' || $str[$j] == '6' || $str[$j] == '7' || $str[$j] == '8' ||
- $str[$j] == '9')
- {
- return true;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment