How can I access a file in the parent directory from a subdirectory in PHP?

To access a file in the parent directory from a subdirectory in PHP, you can use the `../` notation to navigate up one level in the directory structure. This allows you to specify the path to the parent directory and access the desired file.

<?php
$parentFilePath = '../file_in_parent_directory.txt';
$fileContents = file_get_contents($parentFilePath);

echo $fileContents;
?>