Code Monkey home page Code Monkey logo

morecodes-php's Introduction

MoreCodes

Join Us on Youtube!
https://www.youtube.com/channel/UCK8YsKv4-N6ItZfzEyKlI6A/featured

MoreCodes- PHP Programming Problems

Computer Programming Problems and Solutions with the PHP Language

  1. Basic Output
  2. Variables
  3. Basic Input
  4. Comment
  5. Arithmetic Operation
  6. Loops
  7. Condition (If/Else)
  8. Condition (Switch )
  9. Function/Method
  10. Array/List

PHP Easy Programming Problems <- Click to go to Easy Problems

  1. Write a program that accepts two numbers and find the sum.
  2. Write a program that accepts two numbers and perform all arithmetic operations.
  3. Write a program that accepts length and width of rectangle to find area.
  4. Write a program that accepts radius of a circle and find its diameter, circumference, and area.
  5. Write a program that accepts that accepts temperature in Celcius and convert it to Farenheit.
  6. Write a program that checks a number input is even or odd.
  7. Write a program that finds the sum of all numbers from 1 to 20.
  8. Write a program that outputs all numbers divisible by 5 from 1 to 30.
  9. Write a program that accepts a number and outputs 1 to the input (1 to n).
  10. Write a program that accepts three numbers and outputs their average.
  11. Write a program that concatenates two words.
  12. Write a program that asks a user for their name and outputs a greeting with their name.
  13. Write a program that outputs the length of the string.
  14. Write a program that replaces all letter 'a' in a string with letter 'e'
  15. Write a program that finds if a string is within a string.
  16. Write a program that compare two strings.
  17. Write a program that outputs the index of the first occurence of the letter in a string.
  18. Write a program that outputs the frequency of a letter in a string.
  19. Write a program that counts the total number of vowels in a string.
  20. Write a program that checks if a string is a palindrome.

PHP Loops Programming Problems <- Click to go to Loop Problems

  1. Write a program that prints the numbers from 1 to 50. Output "Fizz" for multiples of 3, output "Buzz" for multiples of 5, and bot "FizzBuzz" for multiples of both 3 and 5.
  2. Write a program that outputs 5 random integers.
  3. Write a program that count letters in a string using a loop.
  4. Write a program that outputs an asterisk pyramid.
  5. Write a program that outputs all even numbers below 20.
  6. Write a program that outputs all odd numbers below 20.
  7. Write a program that outputs the sum of numbers from 1 to n.
  8. Write a program that counts vowels in a string.
  9. Write a program to display the multiplication table of a given integer.
  10. Write a program to check whether a given number is an Armstrong number or not.
  11. Write a program that checks if a number is palindrome.
  12. Calculate the Product of two numbers WITHOUT using the * operator.
  13. Write a program that reverses a string.
  14. Write a program that accepts 5 numbers and outputs the average.
  15. Write a program that will ask the user to input n positive numbers. The program will terminate if one of those number is not positive.
  16. Write a program that outputs the factorial of a number.
  17. Write a program that outputs the Fibonacci sequence of a number.
  18. (Recursion) Write a program that outputs the Fibonacci sequence of a number.
  19. (Recursion) Write a program that outputs all even numbers below 20.
  20. (Recursion) Write a program that outputs the sum of numbers from 1 to n.

PHP Array Programming Problems <- Click to go to Array Problems

  1. Write a program that outputs the length of array.
  2. Write a program that gets the index of an element in an array.
  3. Write a program that counts the occurence of an element in an array.
  4. Write a program that outputs the first and last elements of an array.
  5. Write a program that outputs array using loops.
  6. Write a program that checks if an array contains an element.
  7. Write a program that finds the largest number in an array.
  8. Write a program that finds the lowest number in an array.
  9. Write a program that outputs the sum of an array.
  10. Write a program that outputs the average of an array.
  11. Write a program that reverses an array of integer values.
  12. Write a program that compares two arrays.
  13. Write a program that outputs all even numbers in an array.
  14. Write a program that outputs all odd numbers in an array.
  15. Write a program that copies values of an array to another array.
  16. Write a program that deletes an element in an array.
  17. Write a program that inserts an element in an array.
  18. Write a program that sorts an array in descending order.
  19. Write a program that combines two arrays.
  20. Write a program that outputs the element closest to 0.

PHP Conversion Programming Problems <- Click to go to Conversion Problems

  1. Write a program that converts a number to string.
  2. Write a program that converts a string to integer.
  3. Write a program that converts an integer to float.
  4. Write a program that converts a string to array/list.
  5. Write a program that converts an array/list to string.
  6. Write a program that converts a binary number to decimal number.
  7. Write a program that converts a decimal number to binary number.
  8. Write a program that converts a decimal number to hexadecimal number.
  9. Write a program that converys a hexadecimal number to decimal number.
  10. Write a program that converts a decimal number to octal number.
  11. Write a program that converts numbers of day to minutes.
  12. Write a program that converts numbers of day to seconds.
  13. Write a program that converts celsius to farenheit.
  14. Write a program that converts lower case to upper case characters.
  15. Write a program that converts letters to ASCII.
  16. Write a program that converts feet to inch.
  17. Write a program that converts kilometer to meter.
  18. Write a program that converts liter to milliliter.
  19. Write a program that converts numbers to words.
  20. Write a program that converts a number to its corresponding month (e.g. 1 = January).

Check out More on our website!
http://more-codes.com/

morecodes-php's People

Contributors

arjunaranetacodes avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.