Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


Php Programming Code Examples

Php > Strings Code Examples

A function that parses a string and replaces





Code convert numbers to roman numerals - Take a decimal number as input. Check if the number is greater than 1000 or 900 or 500 or 400 or 100 or 90 or 50 or 40 or 10 or 9 or 5 or 4 or 1. If it is, then store its equivalent roman...

Number of days in a Month by switch case - C Program to Input month number and Print Total Number of Days in Month using switch case. Input month number from user. Store it in some variable say month. Switch the value

Using Virtual Functions in C++ Language - See in this case the output is Woof, which is what we expect. What happens in this case? Since we marked the function animalSound() as virtual, the call to the function is resolved

Calculate Sum of all Elements of an Array - Program code calculate sum of all elements of an array using pointers as arguments. The program calls a function to add the addition and passes the array argument as a pointer.

C++ Program to Solve Knapsack Problem - This is a C++ Program to 'knapsack problem' using dynamic programming. The knapsack problem or "rucksack problem" is a problem in combinatorial optimization: given a set of

C++ Program to Implements the B+ Tree - A B+ tree is an n-ary tree with a variable but often large number of "children per node". A B+ tree consists of a root, internal nodes and leaves. The root may be either a leaf or node

C Display the Characters in Prime Position - Take a string as input and store it in the array str[]. "Store the Length" of the input string in the variable 'k'. Use "two Loops" to divide the numbers "upto the value" of k. Increment the

Code Finds Maximum Between 2 Numbers - Finding maximum in general is comparison of two numbers. In C programming we compare two quantities using relational operator. Use either > or < operator to compare 2 numbers