Php Programming Code Examples

Php > Code Snippets Code Examples

Display html source with line numbers

C++ program to find LCM of two numbers - To find the LCM of 2 or more numbers, make "Multiple of Numbers" and Choose Common multiple. Then take lowest common multiple, lowest common multiple is 'LCM' of numbers.

Program Print several types of Alphabets - Print phonetic alphabet. Print lower case greek alphabet. Print lower case hebrew alphabet. Print the lower case phoenician alphabet. Print lower case arab alphabet.

C Finds a Year is Leap or not is a bit Tricky - C Program Code we generally assume that if a year number is evenly divisible by 4 is leap year. But it is not the only case. A year is a leap year if it is evenly divisible by 100. If it is

C Codes Surface Area & Volume of a Cube - The formula used to find the surface area and volume of the cube is surface_area = 6 * (a*a) and volume = a*a*a. Library Function is used in header file to compute Math Functions. We

C++ Program Codes Swaps Two Numbers - The first program uses temporary variable to swap numbers, whereas the second program doesn't use temporary variables. To perform 'swapping' in above example, three variables

C Coding Check the Character is Alphabet - If the ASCII value of the character entered by the user lies in the range 97 to 122 or from 65 to 90, that number is an alphabet. 'a' is used instead of 97 and 'z' is used instead of 122. 'A'

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

Count Frequency of each Element in Array - C programming code to read elements in an array and find frequency of each element in an array. C Program to count the occurrence of each element in an array. Logic to count...