How can different pages be opened using include() in PHP?

When using the include() function in PHP, you can open different pages by providing the file path of the page you want to include as an argument to the function. This allows you to reuse code from other PHP files within your current file. Make sure to specify the correct file path relative to the current file to successfully include the desired page.

<?php
include('path/to/another/page.php');
?>