Write a php program for Currency conversion.

Input Currency name, Value of Input Currency, Output Currency Name

Output Currency Value.

1 dollar=50 Rupee
1 Pound= 1.5 dollar
1 Pound= 80 Rupee

Certainly! Here's a PHP program that performs currency conversion based on the given exchange rates:

```php
<?php

function convertCurrency($inputCurrency, $inputValue, $outputCurrency)
{
// Define the exchange rates
$exchangeRates = [
'Rupee' => 1, // 1 Rupee = 1 Rupee
'dollar' => 50, // 1 dollar = 50 Rupee
'Pound' => 80, // 1 Pound = 80 Rupee
];

// Convert the input value to Rupees
$rupeeValue = $inputValue * $exchangeRates[$inputCurrency];

// Convert the Rupee value to the output currency
$outputValue = $rupeeValue / $exchangeRates[$outputCurrency];

// Return the output value
return $outputValue;
}

// Example usage:
$inputCurrency = 'dollar';
$inputValue = 10;
$outputCurrency = 'Pound';

$outputValue = convertCurrency($inputCurrency, $inputValue, $outputCurrency);

echo $inputValue . ' ' . $inputCurrency . ' = ' . $outputValue . ' ' . $outputCurrency;

?>
```

To use the program, make sure you have PHP installed on your machine. Paste the code into a PHP file (e.g., `currency_conversion.php`) and access it through a web server or run it on the command line using `php currency_conversion.php`.

The program defines a `convertCurrency()` function that takes the input currency, input value, and output currency as arguments. It then uses an array named `$exchangeRates` to store the exchange rates. The input value is first converted to Rupees and then converted to the output currency using the exchange rates.

In the example usage, the program converts 10 dollars to Pound. You can adjust the values based on your requirements. The program will then output the converted value.