Flag of Ukraine
SymfonyCasts stands united with the people of Ukraine
Browse Tutorials

Challenge #1 of 1


Q: 

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>

userVoice