 # Php Programming Code Examples

## Php > Cookies Code Examples

### Smart Counter - This little script is a plain and simple hit counter that

Code Generates All Possible Combinations - Algorithm print all the 'possible combination' of each length from the given array. The time complexity of this algorithm is 'O(n*(2^n))'. A function to print all 'Combination of a Length'

Lets Learn String Functions in C Language - Find the "Length of str1". Increment count till we reach the Terminating character. Find the "Length of str2". Check that we have enough 'space' for both strings. Copy 2. string to end

C Programs Calculates the Simple Interest - Program calculates the simple interest given the principal amount, rate of interest & time. The Formula to calculate the Simple interest is: simple_interest = (p * t * r) / 100 where p...

C++ Language Encapsulation is a Process - Here we have two "data members" num and ch, we have declared them as private so that they are not accessible outside the class, this way we are hiding the data. The only way to

C++ Implement Gift Wrapping Algorithm - Implement Gift Wrapping algorithm to find convex hull in "Two Dimensional Space". In computational geometry, the gift wrapping algorithm is an algorithm for computing the

Program to Delete Element from an array - Program code to delete an element from an array at specified position. How to remove an element from array at given position. Array is a linear data structure. It provides an index...

C Programs Calculates the Value of sin(x) - C Program Coding to Calculates the Value of sin(x). It's a non-differentiable function. Start at zero, then goes up to 1, then back down to 0. But then, instead of Going Negative, it will

Undirected Graph is Connected Using DFS - A "Recursive Function" to print 'DFS' starting from v. Returns reverse ('or transpose') of this graph. Add edge to connect v and w. Check if Graph is Connected and display 'The Graph is