function setfilter($filename)
Filtering a string containing special character in PHP
03.10
Escaping back-slash from a string in PHP
03.10
Random Password Generation in PHP
03.10
$chars = ‘abcdefghijkmnopqrstuvwxyz023456789!@#$’;
srand((double)microtime() * 1000000);
$passwd = ”;
$chars_length = strlen($chars) – 1;
for ($i = 0; $i < 10; $i++)
$passwd .= substr($chars, (rand() % $chars_length), 1);
echo $passwd;
ICC Test Cricket Rankings
03.09
Top 10 Test team:
Teams ICC Cricket Rating
India Team 125
South Africa Team 120
Australia Team 118
Sri Lanka Team 115
England Team 107
New Zealand Team 81
Pakistan Team 80
West Indies Team 77
Bangladesh Team 12
——————————–
Top 10 batsman in Test:
Name Nat.
V. Sehwag IND
H.M. Amla SA
D.P.M.D. Jayawardena SL
K.C. Sangakkara SL
G. Gambhir IND
M.J. Clarke AUS
S.R. Tendulkar IND
J.H. Kallis SA
G.C. Smith SA
R.T. Ponting AUS
———————————–
Top 10 bowlers in Test:
Name Nat.
D.W. Steyn SA
M.G. Johnson AUS
Mohammad Asif PAK
M. Muralidaran SL
G.P. Swann ENG
Zaheer Khan IND
Harbhajan Singh IND
S.C.J. Broad ENG
S.R. Clark AUS
M. Morkel SA
Read Command Line Arguments
03.09
There are two common ways to read command line arguments in C#.
First, you can override the Main method with an array of strings, which are command line arguments. For example, the following code loops through the command line arguments and print them on the console.
static void Main(string[] args)
{
foreach(string arg in args)
{
Console.WriteLine(arg);
}
Console.ReadLine();
}