This is a user defined function I named this function User inside this function it echos the text.
You can then call this function anywhere else in you code and it will do the tasks inside the function brackets.

This function also takes inputs and formates them in the echo statement.

Welcome to Nick 's Class

This is a built in function called phpinfo it gets the phpinfo from the srver and displays it. Shown below. PHP 8.3.14 - phpinfo()
PHP logo

PHP Version 8.3.14

System Linux server.soisweb.uwm.edu 4.18.0-553.32.1.el8_10.x86_64 #1 SMP Wed Dec 11 16:33:48 UTC 2024 x86_64
Build Date Nov 25 2024 00:16:40
Build System Linux hou-1 5.3.18-150300.59.98-default #1 SMP Thu Oct 13 08:52:00 UTC 2022 (dfcde7e) x86_64 x86_64 x86_64 GNU/Linux
Configure Command './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/opt/cpanel/ea-php83/root/usr' '--exec-prefix=/opt/cpanel/ea-php83/root/usr' '--bindir=/opt/cpanel/ea-php83/root/usr/bin' '--sbindir=/opt/cpanel/ea-php83/root/usr/sbin' '--sysconfdir=/opt/cpanel/ea-php83/root/etc' '--datadir=/opt/cpanel/ea-php83/root/usr/share' '--includedir=/opt/cpanel/ea-php83/root/usr/include' '--libdir=/opt/cpanel/ea-php83/root/usr/lib64' '--libexecdir=/opt/cpanel/ea-php83/root/usr/libexec' '--localstatedir=/opt/cpanel/ea-php83/root/var' '--sharedstatedir=/opt/cpanel/ea-php83/root/var/lib' '--mandir=/opt/cpanel/ea-php83/root/usr/share/man' '--infodir=/opt/cpanel/ea-php83/root/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/cpanel/ea-php83/root/etc' '--with-config-file-scan-dir=/opt/cpanel/ea-php83/root/etc/php.d' '--disable-debug' '--with-password-argon2=/opt/cpanel/libargon2' '--with-pic' '--without-pear' '--with-bz2' '--with-freetype' '--with-xpm' '--without-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg' '--with-openssl=/opt/cpanel/ea-openssl11/lib' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-kerberos' '--enable-shmop' '--with-sodium=shared' '--with-libxml' '--with-system-tzdata' '--with-mhash' '--libdir=/opt/cpanel/ea-php83/root/usr/lib64/php' '--enable-pcntl' '--enable-opcache' '--enable-phpdbg' '--with-imap=shared,/opt/cpanel/ea-libc-client' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-litespeed' '--with-webp' '--with-avif' '--enable-gd=shared' '--with-gmp=shared' '--enable-calendar=shared' '--enable-bcmath=shared' '--with-bz2=shared' '--enable-ctype=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-tcadb=/usr' '--enable-exif=shared' '--enable-ftp=shared' '--with-gettext=shared' '--with-iconv=shared' '--enable-sockets=shared' '--enable-tokenizer=shared' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-mysqlnd=shared' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-dom=shared' '--with-pgsql=shared' '--enable-simplexml=shared' '--enable-xml=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-sqlite3=shared,/usr' '--enable-json=shared' '--with-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-tidy=shared,/opt/cpanel/libtidy' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-shmop=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-intl=shared' '--with-enchant=shared,/usr' '--enable-fileinfo=shared' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'PKG_CONFIG_PATH=/opt/cpanel/ea-php83/root/usr/lib64/pkgconfig:/opt/cpanel/ea-php83/root/usr/share/pkgconfig:/usr/lib64/pkgconfig:/opt/cpanel/ea-libxml2/lib64/pkgconfig:/opt/cpanel/ea-libicu/lib/pkgconfig:/opt/cpanel/ea-oniguruma/lib64/pkgconfig:/opt/cpanel/libargon2/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib64/pkgconfig:/opt/cpanel/libargon2/lib64/pkgconfig' 'KERBEROS_CFLAGS=-I/usr/include' 'KERBEROS_LIBS=-L/usr/lib64' 'JPEG_CFLAGS=-I/usr/include' 'JPEG_LIBS=-L/usr/lib64 -ljpeg' 'SASL_CFLAGS=-I/usr/include' 'SASL_LIBS=-L/usr/lib64' 'ARGON2_CFLAGS=-I/opt/cpanel/libargon2/include' 'XSL_CFLAGS=-I/opt/cpanel/ea-libxml2/include/libxml2' 'XSL_LIBS=-L/opt/cpanel/ea-libxml2/lib64 -lxml2' 'LIBZIP_CFLAGS=-I/opt/cpanel/ea-libzip/include' 'LIBZIP_LIBS=-L/opt/cpanel/ea-libzip/lib64 -lzip'
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /opt/cpanel/ea-php83/root/etc
Loaded Configuration File /opt/cpanel/ea-php83/root/etc/php.ini
Scan this dir for additional .ini files /opt/cpanel/ea-php83/root/etc/php.d
Additional .ini files parsed /opt/cpanel/ea-php83/root/etc/php.d/20-bcmath.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-calendar.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-ctype.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-curl.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-dom.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-ftp.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-gd.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-iconv.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-imap.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-mbstring.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-mysqlnd.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-pdo.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-phar.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-posix.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-simplexml.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-sockets.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-sqlite3.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-tokenizer.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-xml.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-xmlwriter.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-xsl.ini, /opt/cpanel/ea-php83/root/etc/php.d/20-zip.ini, /opt/cpanel/ea-php83/root/etc/php.d/30-mysqli.ini, /opt/cpanel/ea-php83/root/etc/php.d/30-pdo_mysql.ini, /opt/cpanel/ea-php83/root/etc/php.d/30-pdo_sqlite.ini, /opt/cpanel/ea-php83/root/etc/php.d/30-xmlreader.ini, /opt/cpanel/ea-php83/root/etc/php.d/zzzzzzz-pecl.ini
PHP API 20230831
PHP Extension 20230831
Zend Extension 420230831
Zend Extension Build API420230831,NTS
PHP Extension Build API20230831,NTS
Debug Build no
Thread Safety disabled
Zend Signal Handling enabled
Zend Memory Manager enabled
Zend Multibyte Support provided by mbstring
Zend Max Execution Timers disabled
IPv6 Support enabled
DTrace Support disabled
Registered PHP Streamshttps, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transportstcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3
Registered Stream Filterszlib.*, string.rot13, string.toupper, string.tolower, convert.*, consumed, dechunk, convert.iconv.*
Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v4.3.14, Copyright (c) Zend Technologies