 # Php Programming Code Examples

## Php > Algorithms Code Examples

### A Simple - bubblesort

C++ Converting Centigrade to Fahrenheit - To "convert temperature" from centigrade to Fahrenheit in the C++, you have to ask to the user to enter the temperature in "centigrade" to convert it into Fahrenheit (using fah = (1.8

C Number of Days in a Month Switch Case - Find number of Days in a Month using switch case - best approach. Lets Observe the above program carefully for a moment. In the above program we are performing same action on...

Codes Binary Number to Decimal Number - Takes the binary number (entered by user) as input and converts it into a decimal number using function. To understand this program, you should be familiar with the following C...

Program to Reverse every Word of Strings - Program 'takes a string', reverses every word of the string. Take a string as input and store each word of the input string in the separate rows of the '2-D array'. Reverse each word of

Program to Check if a Binary Tree is a BST - Returns true if the given tree is a BST and its values are >= min & <= max. Allocates a new node with the data and "NULL" left and right pointers. The Given Binary Tree is a "BST" or

C++ Language Accessing Array Elements - "Array index" starts with 0, which means the first array element is at index 0, second is at index 1 and so on. We use this information to display the array elements. See the C++ code

Strrchr searches the string in reverse order - 'StrrChr' is similar to the function 'StrChr', the only difference is that it searches the string in "Reverse Order", would have understood why we have extra r in 'strrchr', yes you guessed it

C language simple program dice throwing - C Programming dice throwing code. Seed the random number generator. The highest score of the two dice wins. Get a random number from 1 to 6. Calculate the total of the two...