We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afb63fb commit 60e637aCopy full SHA for 60e637a
Check.cs
@@ -75,15 +75,16 @@ public static bool IsAValidPhilippineMobileNumber(string str)
75
76
public static bool IsAllNumbers(string str)
77
{
78
+ bool value = true;
79
string numbers = "0123456789";
80
foreach (char a in str)
81
82
if (!numbers.Contains(a))
83
- return false;
84
+ value = false;
85
}
86
- return true;
87
+ return value;
88
89
90
public static bool HasNumbers(string str)
0 commit comments