# Php Programming Code Examples

## Php > Code Snippets Code Examples

### DIsplay the content type of a file with PHP and cURL

C Convert Binary to Octal Number System -
Program input binary number and convert to octal number system. To make things simple and sound, I have divided the logic in 2 easy steps. Group all binary bits to 3 digits starting

Insert, Update and Delete value Functions -
This c++ program code is helpful to manage a menu "base database" using array and shows how to prevent from a wrong input. Its simple to introduce the basic database management

C program code Self-Referential structure -
Buffer for ungetch, next free position in buf, word frequency count, getword: get next word or character from input, addtree: add a node with w, at or below p, a new word has

Count total number of Negative Elements -
C program to read elements in an array and count total number of negative elements in array. Program to find all negative elements in an array. Logic to count total negative and

Conditional Operator Check Even or Odd -
C programming code to input a number and check whether number is even or odd using Conditional/Ternary operator ?:. Check even or odd numbers using conditional operator...

Codes Prints Strong Numbers from 1 to n -
Program print Strong numbers between 1 to n. Strong number is a special number whose sum of factorial of digits is equal to original number. For example: 145 is strong number.

C Coding to find Sum of Two Matrices 3x3 -
C program to read elements in two matrices and add elements of both matrices. C code for addition of two matrix. Matrix addition program in C. Logic to add two matrix in C.

Dictionary implimentation by Binary Trees -
In C++, where first, the 'dictionary' is created by taking an input by the user for the words and their meanings. Next, these are stored in a "Binary Search Tree", after which the file is