 # Php Programming Code Examples

## Php > Algorithms Code Examples

### This code generates an MD5 protected string, which can be used

Code Finds the Sum of 2 Binary Numbers - Take two Binary Numbers as input. Add each bits from the two binary numbers separately starting from LSB. The operations may be as follows. a) (0+0)=0, b) (1+0)=1, c) (1+1)=0 and

Code find power of number using for loop - C program to find power of a number using for loop. Input base and exponents from user. Store it in two variables say base and expo. Declare & initialize another variable to store

C programming code right rotate an array - C code to right rotate an array by n position. How to right rotate an array n times in C. Logic to rotate an array to right by n position in C program. Read elements in an array say

Find the Largest Two Numbers in an Array - C Program code calculates the largest of two numbers in a given Array. First it accepts an array, then compares the elements and finds which is the largest two element in a given...

Program to Traverse the Tree Recursively - C program code, using recursion, performs traversal operation across the nodes in tree. The tree we have used is the binary search tree. The user generates a tree by inserting

Check the two Strings are Anagram or Not - To check whether the two string are anagram or not anagram in C++, enter the 'two strings' to start checking for anagram and display the result on the Screen as shown here in sample

Implement Dijkstra's Algorithm Using Set - This is a C++ Program to find "shortest path". Dijkstra's algorithm is very similar to Prim's algorithm for minimum spanning tree. Like "Prim's MST", we generate a SPT with given

Reverse Counting program in C Language - C Program reverse counting is sequence of whole numbers in descending order without zero. Developing a program of counting in C programming language is easy and we shall