0% found this document useful (0 votes)
19 views1 page

Task 1

The document outlines a series of programming tasks to be implemented in PHP. These tasks include finding the sum of two numbers, calculating factorials, checking for palindromes and prime numbers, generating Fibonacci series, reversing strings, sorting arrays, finding maximum and minimum values, counting words in a string, and factorizing numbers. Each task is designed to enhance PHP programming skills through practical applications.

Uploaded by

minaadel837
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views1 page

Task 1

The document outlines a series of programming tasks to be implemented in PHP. These tasks include finding the sum of two numbers, calculating factorials, checking for palindromes and prime numbers, generating Fibonacci series, reversing strings, sorting arrays, finding maximum and minimum values, counting words in a string, and factorizing numbers. Each task is designed to enhance PHP programming skills through practical applications.

Uploaded by

minaadel837
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1.

Sum of Two Numbers: Write a PHP script to find the sum of two
numbers.
2. Factorial: Write a PHP function to find the factorial of a number.
3. Palindrome Check: Create a PHP function to check if a given string is
a palindrome or not.
4. Prime Number Check: Write a PHP function to check if a number is
prime or not.
5. Fibonacci Series: Generate the Fibonacci series using PHP.
6. Reverse a String: Write a PHP function to reverse a given string.
7. Sorting an Array: Implement various sorting algorithms like bubble
sort, selection sort, or insertion sort in PHP.
8. Find Maximum and Minimum: Write a PHP function to find the maximum and
minimum values in an array.
9. Count Words in a String: Create a PHP function to count the number
of words in a given string.
10. Factorization: Write a PHP function to find the prime factors of
a given number.

You might also like