Start your All-Access Pass to unlock this challenge
Suppose your index.php
file creates a variable and includes a header.php
file:
<!-- index.php -->
<?php
$secretWord = 'engage';
require 'header.php';
?>
Inside of header.php
, what would happen if you tried to access this $secretWord
variable?
<!-- header.php -->
<header>
<?php echo $secretWord; ?>
</header>