 # Php Programming Code Examples

## Php > Algorithms Code Examples

### Converts a string to Title Case

C Determine and Print if the Value is Odd - C Using conditional statement (if-else) in an iteration (i.e. for loop). We shall initiate a for loop having some finite iterations and check every value of it. if conditional statements...

C++ Bitap Algorithm and String Matching - The algorithm tells whether a text contains a substring which is "approximately equal" to a given pattern, where approximate equality is defined in terms of Levenshtein distance and

Program Code to Reverse Copy Array in C - How to reverse copy array in C programming language. This program code shall help you learn one of basics of arrays. We shall copy one array into another array but in reverse.

Program Find the Average using Function - C code to find the average using function. We have created user defined function average() for the calculation of average. The numbers entered by user are passed to this c function

Code find sum of main diagonal elements - Read elements in a matrix and find the sum of main diagonal (major diagonal) elements of matrix. Find sum of all elements of main diagonal of a matrix. Input elements in the

C Check Whether a number is Even or Odd - C Program code to Check Whether a number is even or odd using if else. A number exactly divisible by 2 leaving no remainder, is known as even number. Any number modulo divided

C++ Table Show the legal values for Mode - Open a text file for reading. Create a text file for writing. Append to a text file and Open a binary file for reading. Create a binary file for writing. Append to a binary file. Open a text

Illustrate how User Authentication is Done - C programming code asks for the username, password and displays the same to illustrate user authentication. Take the user name and password as input. Print the each character...