Hash #

# is character, used in various situations:

  • One line comment: # comments after the character

  • Separator in a URL, for the anchor: https://www.php.net/ChangeLog-8.php#8.5.3

A hash may also be a type of arrays.

<?php

    file_get_contents('https://www.php.net/ChangeLog-8.php#8.5.3');

    echo 1; # A single line comment

?>

Documentation

Related : Comments, Hash