 # Php Programming Code Examples

## Php > Strings Code Examples

### A function to take a string and converts the first letter of all words to upper case

C Display Nodes of a Linked list in Reverse - C Program uses recursive function & reverses the nodes in a Linked list and displays the list. Linked list is an ordered set of data elements, each 'containing a link' to its successor. This C

Copying an Array involves index by index - C program code shall help you learn one of basics of arrays. Copying an array involves index-by-index copying. For this to work we shall know the length of array in advance,...

C Program Convert Binary to Hexadecimal - C Language program takes a binary number as input and converts to hexadecimal. Take a binary number as input. And divide the binary number into groups of 4 bits. For each group

Program Code to Selection Sort Algorithm - The 'smallest element' is exchanged with the first element of the unsorted list of elements. The "second smallest element" is Exchanged with the 'second element' of the unsorted list

Perform Exception Handling for Divide by - Declare the variables a,b,c. Read the values. Inside the "try block" check the condition. (a. if(a-b!=0) then "calculate the value" of d and display.b. otherwise throw the exception. So

Count Zeros and Ones in a Binary Number - Program input a number from user and count total number of ones (1s) and zeros (0s) in the given number using bitwise operator. How to count zeros and ones in binary number using

C++ Program Check if it is a Sparse Matrix - This is a C++ Program code to check 'sparsity' of a matrix. If the number of zeros in a matrix exceeds (n*m)/2, n and m is the dimension of the matrix, matrix is sparse matrix. Enter the

C Code Traverse the Tree Non-Recursively - C language code, using iteration, searches for a given node in a tree. The tree we have used is the binary search tree. A binary search tree follows a concept of nodes whose numbers...