The conversation between human and AI assistant.
[|Human|] Generate a correct PHP code for the following purpose
[|AI|] ```php
<?php
function rectangle_area($length, $width) {
  $area = $length * $width;
  return $area;
}
?>
```
[|Human|] 
Generate a correct PHP code for the following purpose