# Php Programming Code Examples

## Php > Graphics Code Examples

### Quick PHP GD JPG Thumbnailer Script

Reads Input until Enters a Positive Integer -
C Language program to read input until user enters a positive integer. Positive Numbers 1, 2, 3... are known as natural numbers. C code below takes a positive integer (let say n) as...

Print stuff to a File Reading the number of -
Write a c programming example to print stuff to a file reading the number of time for an other file. Program code to read the number from a file. Program code to write to the file.

Program Displays the Transpose of Matrix -
To transpose any matrix in C++ Programming language, you have to first ask to the user to enter the matrix and "replace row" by column and column by row to "transpose" that matrix

C Codes Calculates Prints the Value of nPr -
In the following c program we are calculating the value of nPr based on the given values of n and r. nPr can also be represented as P(n,r). The formula of P(n, r) is: n! / (n - r)!. P(5, 2)=5!

If Else If Statement & Multiple Conditions -
In this control structure we have only one 'if' and one 'else', however we can have multiple 'else if' blocks. This is how it looks: If none of the 'condition is true' then these statements

C Program Find ASCII value of a Character -
ASCII value represents the english characters as numbers, each letter is assigned a number from 0 to 127. For example, the ASCII value for uppercase X is 88. This program takes the

Implement Graham Scan Algorithm Finds -
This is a C++ Program to implement Graham Scan algorithm. 'Graham's scan' is a method of computing the convex hull of a finite set of points in the plane with time complexity O(n

Implement Nearest Neighbour Algorithm -
This is a C++ Program to implement nearest neighbour algorithm to 'solve TSP'. This C++ program implements the travelling salesman problem which computes the minimum cost