```php
<?php
function rectangle_area($length, $width) {
  $area = $length * $width;
  return $area;
}
?>
```
Create a function to calculate the area of a rectangle.
### Instruction:
Generate a correct PHP code for the following purpose

### Input:
Create a function to calculate the area of a rectangle.

### Response:
