# PHP program to enter the P, T, R, and calculate its Compound Interest

ADVERTISEMENTS

PHP program to enter the P, T, R, and calculate its Compound Interest. There are you will learn how to find the Compound Interest through P, T, R in PHP language.

**Formula:**

*CI = P * pow((1 + R / 100), T)*

**Where:**

*P = Principal Amount*

*T = Time*

*R = Rate*

*CI = Compound Interest*

Let us understand this example through the PHP program:

```
<?php
// PHP program to enter P, T, R, and calculate Compound Interest
$p = 5;
$t = 7;
$r = 9;
$CI = NULL;
// p = principle
// t = time
// r = rate
// CI = compound interest
// Calculate compound interest
$CI = $p * (pow((1 + $r / 100), $t));
// Output
echo "Compound Interest = " . $CI;
?>
```

**Output Screen:**

Compound Interest = 9.1401956040835