Practical_Program_List_1_5
Practical_Program_List_1_5
13. Write a PHP Program to input any two numbers from user and swap
values of both numbers using bitwise operator.
14. Write a PHP Program to input any number and check whether the
given number is even or odd using bitwise operator.
15. Develop a PHP program to convert decimal number to binary number.
16. Develop a PHP program to convert binary number to decimal number.
17. Write a PHP program to input a number from user and print
multiplication table of the given number using for loop.
27
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
28
*****
* *
* *
* *
*****
29
*
**
* *
* *
* *
******
30
0
0 1
0 1 0
0 1 0 1
*********************************************************************************
Experiment No -04
6. PHP program to get the only values from an associative array in PHP?
7. PHP program to sort an integer array in ascending and descending order
8. PHP program to Delete an element from an array using unset() function
9. PHP program to Delete all occurrences of an element from an array
10. PHP program to Find the occurrences of a given element in an array
11. PHP program to Check if an array is empty or not in PHP
12. Write a PHP program to perform following array operations
A) array_flip() B) Compact() C) extract() D) Implode() E) Explode()
13. Write a PHP program to perform following array operations
A) array_push() B) array_pop() C) array_shift() D) array_unshift()
14. Write a PHP program to perform following array operations
**************************************************************************
Experiment No -05
a. Write a PHP program to—
ii. Count the number of words in string -without using string functions.
b. Write a simple PHP program to demonstrate use of various built-in string functions.
1) ucwords()
2) str_repeat()
3) strcmp()
4)substr()