HI please read this and tell me that why it outputs outsider bar?

<?php
$bar = “outside”;
Function ab()
{
$bar = “inside”;
}
Ab();
Echo $bar . “<br />”;

?>