 # Php Programming Code Examples

## Php > Algorithms Code Examples

### Paginating the mySQL data

C Programming Codes Implement a Stack - C Program to ask the user for the operation like push, pop, display, exit. Use the variable top to represent the top of the stack and then according to the option entered, access its...

Find the Length of Strings without Built-in - This program takes a string as input and finds its Length without using the built-in function. Take a string as input and store it in the array 'string[]'. Using for loop count the number of

Check if String is Empty or Not in The C++ - You can use the 'empty()' function of string to determine whether a string is empty or not. If a string is empty, function empty() will return true otherwise false. The string class provides

C++ Programming Print Table of Number - You have to ask to the user to enter a number and start "multiplying" that number from 1 to 10 and display the multiplication result at the time of multiplying on the screen which is the

Check Prime, Armstrong, Perfect Number - C First give a meaningful name to our prime checking function say isPrime() function will check a number for prime. Since our function checks a number for prime condition. Hence

C Decimal to Binary, Octal HEX Converting - C programming converting example. Decimal number to Binary number, Octal number and HEX number converter. Enter any number to be converted. The Number has to be in the...

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++ 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