It holds all the practicals as per the syllabus of University of Delhi's B.Sc. (Hons.) Computer Science course.
- Create a PHP page using functions for comparing three integers and print the largest number.
- Write a function to calculate the factorial of a number (non-negative integer). The function accept the number as an argument.
- WAP to check whether the given number is prime or not.
- Create a PHP page which accepts string from user. After submission that page displays the reverse of provided string.
- Write a PHP function that checks if a string is all lower case.
- Write a PHP script that checks whether a passed string is palindrome or not? ( A palindrome is word, phrase, or sequence that reads the same backward as forward, e.g., madam or nurses run)
- WAP to sort an array.
- Write a PHP script that removes the whitespaces from a string.Sample string : 'The quick " " brown fox' Expected Output : Thequick""brownfox
- Write a PHP script that finds out the sum of first n odd numbers.
- Create a login page having user name and password. On clicking submit, a welcome message should be displayed if the user is already registered (i.e.name is present in the database) otherwise error message should be displayed.
- Write a PHP script that checks if a string contains another string.
- Create a simple 'birthday countdown' script, the script will count the number of days between current day and birth day.
- Create a script to construct the following pattern, using nested for loop.
*
* *
* * *
* * * *
* * * * *
- Write a simple PHP program to check that emails are valid.
- WAP to print first n even numbers.
- $color = array('white', 'green', 'red'') Write a PHP script which will display the colors in the following way :
Output :
white, green, red
• green
• red
• white
- Using switch case and dropdown list display a “Hello” message depending on the language selected in drop down list.
- Write a PHP program to print Fibonacci series using recursion.
- Write a PHP script to replace the first 'the' of the following string with 'That'.
Sample : 'the quick brown fox jumps over the lazy dog.'
Expected Result : That quick brown fox jumps over the lazy dog
It holds all the practicles as per the syllabus of University of Delhi's B.Sc. (Hons.) Computer Science course.
In order to run this project, the very first task, that has to be done is: you need to rename main.php
to index.php