আগামী ১৫ ডিসেম্বর -২০১৭ তারিখ থেকে শুরু হচ্ছে পাঁচ মাস ব্যাপী Professional Web Design and Development with HTML, CSS PHP,MySQL,JavaScript, AJAX, JQUERY, Bootstrap and Live Project কোর্সের ৮৭ তম ব্যাচ এবং ২৬ ডিসেম্বর-২০১৭ তারিখ থেকে শুরু হচ্ছে চার মাস ব্যাপী Zend PHP-7 Certified PHP Engineering (Advance PHP) কোর্সের ৩৫ তম ব্যাচ। প্রত্যেকটি কোর্স এর ফী নির্ধারণ করা হয়েছে ৩০,০০০/= আগ্রহীদেরকে অতিসত্বর মাসুদ আলম স্যার এর সাথে যোগাযোগ করতে অনুরোধ করা যাচ্ছে। স্যার এর মোবাইল: 01722 81 75 91

What is the comments in PHP?

What is the comments in PHP?

coding documentation

In this episode you will learn :

What is PHP Comments?

PHP Comments: Comments in PHP or any Programming Language are the explanations or footnotes of a code or programmer’s source code. We can call it Coding Documentation. Generally, any Programming Language Compiler and Interpreter avoid comments (Ignore) without executing the code as a code. With Comments System, we will not be used right now in addition to Coding Documentation, but we can also hide the codes that we can use in the future.

How Many Comments on PHP?

Comments in PHP are basically two types:

1. Single Line Comments (Each line has to use a comment mark separately)

2. Multi Line Comments (For multiple lines comment, use the mark only once.)

What is the Single Line Comments in PHP? How is Single Line Commented use in PHP?

A programmer in PHP uses the comment mark on each line separately, it is called Single Line Comments. It is also call short comments. Single Line comment on PHP use # (hash) and // (two slashes). Let’s better understand the following example:

<?php
echo 5+4; // Here's a single-line PHP comments for 5 and 4 summation
echo "Hello World";  # Here's another single-line PHP comments for "Hello World" String
?>

Explanation: Notice that the two lines here that we have enclosed on single line comment, these two lines will not come in our browser.

What is the Multi Line Comments on PHP? How to make a Multi Line comment in PHP?

A programmer in PHP uses only one comment mark for multiple lines. In the terminology of PHP, it is called Multi Line Comments. Multi Line Comments with / * * / in PHP Let’s better understand the following example:

<?php
/*
Here's a long PHP comments spread over
many lines.
 
You can format a multi-line comment
any way you like.
*/
echo "Hello World";
?>

Explanation: Notice that all the lines we have here are basically tied to the line comment, they will not come in our browser.

Hi, My name is Masud Alam, love to work with Open Source Technologies, living in Dhaka, Bangladesh. I’m a Certified Engineer on ZEND PHP 5.3, I served my first five years a number of leadership positions at Winux Soft Ltd, SSL Wireless Ltd, Canadian International Development Agency (CIDA), World Vision, Care Bangladesh, Helen Keller, US AID and MAX Group where I worked on ERP software and web development., but now i’m a founder and CEO of TechBeeo Software Company Ltd. I’m also a Course Instructor of ZCPE PHP 7 Certification and professional web development course at w3programmers Training Institute – a leading Training Institute in the country.

Leave a Reply

Your email address will not be published. Required fields are marked *