gethostname

PHP 5 >= 5.3.0, PHP 7, PHP 8
gethostname - Gets the host name
Manual
Code Examples

Example #1 A simple gethostname example

PHP Version: