1. Finding k-th smallest number:
Take some integers from the command line as input. First element is parameter k.
Print the k-th smallest number.
Validate your input: For example if we feed strings instead of numbers your program should print a custom message, and in which argument it has occurred.
(A file called e2.php is given where such error handling is shown, in addi- tion to an example given in the demos.)
(A file called argv.php has example showing how to access command line arguments in PHP).
(name of your file should be q1.php).
1





