First PHP page for Hello world output and checking installation with phpinfo() and uses of comments

preview_player
Показать описание
01:06 root of localhost
01:40 First PHP script Hello world
02:40 phpinfo() to get PHP installation details.
05:10 comments in PHP script

We can write our first PHP script by printing Hello world. We will keep this conde inside our PHP section and run the code in our localhost to check the output
echo “Hello world”;
To check the PHP installation with details of the support or libraries available we can use phpinfo().
echo phpinfo();

While inside PHP section we have to take care of syntax and outside the PHP section we can simply write HTML or any other text without following the PHP syntax.
Comments are useful and we can use single line or multi line comments. We can use multiline comments to stop execution of part of the code.

#firstPHPScript #phpinfo() #comments #singlelineComment #plus2net #php #PHPTutorials #PHPForBeginners
Рекомендации по теме
welcome to shbcf.ru