PHP
250+ PHP Programs for Practice | PHP Tutorial with Solutions
PHP Tutorial PHP Tutorial provides in-depth knowledge about the Server side scripting language i.e. PHP. Using these PHP programs for …
Write a PHP program to find the Fibonacci series
Introduction Write a PHP program to find the Fibonacci series What is the Fibonacci series? The Fibonacci series is the …
List of PHP basic programs with examples
PHP( Hypertext Preprocessor) is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. …
List of PHP array programs with examples
PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I have …
All star pattern programs in PHP
Introduction: All star pattern programs in php PHP is a server scripting language, and It is a powerful tool for …
All PHP Loop programs with examples
PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I have …
List of String programs with examples
PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I have …
PHP Exercises, Practice, Solution | PHP programming exercises
To learn any programming language you have to practice the programs, this is one of the best and faster way …
Write a PHP script to select first 6 words from the following string
Sample String : Techstudy – The Complete Debugging Solution (techstudy.org) Introduction PHP is a server scripting language, and It is …
Write a PHP script to print letters from ‘a’ to ‘z’.
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to get the first word of a sentence
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to remove comma(s) from the following numeric string
Sample String : ‘12,342.78’ Introduction PHP is a server scripting language, and It is a powerful tool for making interactive …
Write a PHP script to remove all leading zeroes from a string
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to insert a string at the specified position in a given string
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to remove a part of a string from the beginning
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to print the next character of a specific character
ntroduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to generate simple random password from a given string
Note : Password length should be be 6, 7, 8,9,10. Introduction PHP is a server scripting language, and It is …
Write a PHP script to replace the first ‘the’ of the following string with ‘best’
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to get the last three characters of a string
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to extract the user name from the email ID
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script split the following string
Sample string : ‘123456’ convert it into ’12 34 56′ Introduction PHP is a server scripting language, and It is …
Write a PHP script to convert first character of all the words uppercase
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to convert first character uppercase
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to convert uppercase string to lowercase
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to convert lowercase string to uppercase
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP program to print table of number
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP Script to sum of odd numbers from 1 to 10
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP Script to sum of even numbers from 1 to 10
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to print all odd numbers between 1 to 10
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to print all even numbers between 1 to 10
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script using nested for loop that creates a chess board
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a program which will count the “t” characters in the text “techstudy”
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to calculate and print the factorial of a number using a for loop
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script using a for loop to add all the integers between 0 and 20 and display the sum
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script that displays 1 2 3 4 5 6 7 8 9 10 numbers on one line
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP function to set union of two arrays
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to sort an array in reverse order (highest to lowest)
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP function that returns the lowest integer that is not 0
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to generate unique random numbers within a range
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
PHP count() Function to get Length
PHP is a server scripting language whose key tool is creating dynamic and interactive Web page Introduction The PHP count() …
Write a PHP script which displays all the numbers between 50 and 150 that are divisible by 4
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to calculate and display average temperature, five lowest and highest temperatures
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script that inserts a new item in an array in any position
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to get the First element of the above array
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script which will display the Cars in the following way using array
BMW Dastun Honda Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and …
Write a PHP program that multiplies corresponding elements of two given lists
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP program to compute the sum of the digits of a number
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP program to print out the multiplication table upto 5*5
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP program to compute the sum of the prime numbers less than 200
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP program to remove duplicates from a sorted list
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP program to convert word to digit
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP program to check if a number is an Armstrong number or not
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP program to swap two variables
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP function to test whether a number is greater than 30, 20 or 10 using ternary operator
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to display string, values within a table
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a simple PHP program to check that email id is valid or not
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to redirect a user to a different page
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script, which changes the color of the first character of a word
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a simple PHP browser detection script
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to get the client IP address
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Create a HTML form that accept the user name and display the name using php
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …
Write a PHP script to display ‘Hello World!’
Introduction PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I …