Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Friday, January 29, 2016

PYRAMID IN PHP: Form an Upside Down Pyramid Using Numbers in PHP

I created another PHP Code to dsiplay a pyramid out of numbers. This program uses two (2) looping statement. In my example, I did used the w...

MULTIPLICATION TABLE: Display Multiplication Table using Loop in PHP

Hey guys! My new article is about displaying a multiplication table for the number 9. The $num contains 9 which will serve as our multiplica...

AREA OF ISOSCELES TRIANGLE: Solve for the Area of An Isosceles Triangle in PHP

An isosceles triangle is a triangle with two (2) equal sides. To be able to solve for the area of an isosceles triangle, you need to used th...

Thursday, January 28, 2016

EQUILATERAL TRIANGLE AREA: Solve for the Area of An Equilateral Triangle

An equilateral triangle is a triangle with three (3) equal sides. The following is the illustration and formula on how to solve for the are...

PYRAMID IN PHP: Form a Pyramid Using Numbers in PHP

I created another PHP Code to dsiplay a pyramid out of numbers. This program uses two (2) looping statement. In my example, I did used the w...

GENERATE RANDOM CODE IN PHP: Create a Random Code From A-Z a-z 0-9

Hi there! Today I created by own version in generating random code in PHP from characters A-Z, a-z and 0-9. You can set how many characters ...

PHP RANDOM NUMBER: Generate Random Numbers in PHP

A random function rand()  is used to generate random integer numbers. I already done posting article about generating random numbers in Java...

PHP ELLIPSE AREA: Solve for the Area of an Ellipse

Ellipse is an oval shape quite similar with that of a circle but is elongated. I already posted articles related to solving for the area of ...

Wednesday, January 27, 2016

PHP CIRCLE AREA: Solve for the Area and Circumference of A Circle

Area is the size of the surface of an object. In this article, we will discuss about the formula and  php code  in solving for the  area of ...

PHP SQUARE AREA: Solve for the Area of a Square

Area is the size of the surface of an object. In this article, we will discuss about the formula and  php code  in solving for the  area of ...

Tuesday, January 26, 2016

FOR LOOP PHP: Display Numbers Using For Loop in PHP

For loop is used if you already know how many times your code will be executed. Syntax for(init;condition;increment/decrement) {  statement...

Monday, January 25, 2016

FOREACH LOOP PHP: Display Data from An Array Using Foreach Loop in PHP

An array  is a special variable that holds not just a single value, but multiple values. Let's say we have an array of names such as Rea...

PHP TRIANGLE AREA: Solve for the Area of a Triangle in PHP

This is a simple code to solve for the area of a triangle in php. Area is the surface of an object. The formula is A=hb/2 or height * base /...

Sunday, January 24, 2016

FOR LOOP IN PHP: Display Numbers Using For Loop

PHP for loop  is used to repeat execution of statement until a certain condition is true . First thing to do in the for loop is to initializ...

PHP LOOP: Display Numbers Using Do While Loop

The Do While  loop executes the body of the loop before checking for the condition. Unlike the while loop wherein testing the condition is d...

PHP CELSIUS TO FAHRENHEIT: Celsius and Fahrenheit Converter Code

Hi there! This article will create a simple temperature converter from fahrenheit to celsius and vice versa. We will be using the followin...

PHP ODD OR EVEN: Display Numbers Using A Loop and Identify If Odd or Even

This example uses PHP looping statement specifically the while loop  but you can also use the different looping statements. The example belo...

WHILE LOOP IN PHP: Display Numbers Using While Loop in PHP

PHP while loop  is used to execute statement/s if the condition is true until a certain condition is false . Syntax for the while loop whil...

Friday, January 22, 2016

CALCULATOR IN PHP: Create A Simple Calculator

This example is just a simple PHP script to calculate two (2) values based on the selected operator. The sample output is posted below for i...

PHP MYSQL: Display Data in Tables From Database

STUDENT First you construct  your HTML code and insert the following code between your body code. HTML, PHP and MySQL Code <table>  ...