# Php Programming Code Examples

## Php > Code Snippets Code Examples

### Display the dimensions of an image using the GD library

Program Generate All the Set Partitions of - This algorithm takes the 'Input of the Natural' number and prints all the possible partition of each number less than or equal to it. For each number, it starts with the number and breaks

Prime Numbers in a Range with Functions - Declare function to find all prime numbers in given range. First give a meaningful name to our function. Say printPrimes() function will print all prime numbers in a range. Declare...

C++ Codes Generate Armstrong Numbers - To generate 'Armstrong numbers' in C++, you have to ask to the user to enter the interval to print the Armstrong number between a given interval as shown here in the following codes.

Check Whether Number is Strong Number - How to check Strong Numbers using loop in C. What is Strong number? Strong number is a special number whose sum of factorial of digits is equal to the original number. 145 is

Whether a Path Exists Between two Given - We create a queue for BFS. Mark the current node as visited and enqueue it. It will be used to get all adjacent vertices of a vertex. Get all adjacent vertices of the dequeued vertex s. If

Function Overriding in The C++ Language - Function overriding is a feature that allows us to have a "same function" in child class which is already present in the parent class. A child class inherits the data members and member

Find Twos Complement of Binary Number - C program code to input binary number from user and find twos complement of the binary number. Twos complement of N-bit number is defined as the complement with respect to

Calculate Sum and Difference of Matrices - C Program calculates the sum & difference of the matrices. Code first reads 2 matrices and then performs both addition and subtraction of matrices. Sum of elements of matrix A and