## Sum of Natural Numbers in PHP

Sum of Natural Numbers in PHP <?php $n=5; // Initialises n to 10 for sum of natural no. up to 10$sum=0; for($i=1;$i<= $n;$i++) { $sum =$sum +$i; // This statement execution i will explain below } echo$sum; ?> // First iteration, $sum=0 and$i=1 on the right side then left side … Read more Sum of Natural Numbers in PHP

## Calculate Factorial in PHP

Calculate Factorial in PHP <?php $n=5; // For calculating factorial of 5$fact=1; // Initialising value of fact to 1 for($i=1;$i<=$n;$i++) { $fact =$fact * $i; // This statement i will explain below } echo$fact; ?> // Here  first time $i= 1 and$fact=1;   then $fact=1 // Second time$i=2 and … Read more Calculate Factorial in PHP

## Switch Statement in PHP

Switch Statement in PHP <?php $var=3; // Assings 1 to variable var switch($var)// Switch statement that takes an argument { case 1:      // If the value of var is 1 echo ” This is 1″; // this statement will be executed break; case 2:      // If the value of var is … Read more Switch Statement in PHP

## For Loop in PHP

For Loop in PHP Code Comment <?php //PHP opening tag for( $i=0;$i <= 20; $i++){ //First$i=0 is initialization $i <= 20 is condition check and$i++ is increment if($i%2==0){ //Check whether i is divisible by 2 if yes it is an even number echo ” This is an even number$i”; } } … Read more For Loop in PHP

## Print Even Numbers in PHP

Print Even Numbers in PHP <?php $i = 1; // Statement initialises i to 1 echo “This will print even numbers between 1 to 11”; // Prints the statement in double quotes while($i <= 11) { // Check whether condition is true if ( $i % 2==0) // Checks divisibility by two echo “$i</br>”; // … Read more Print Even Numbers in PHP

## Conditional Statements in PHP

Conditional Statements in PHP <?php $a =10; // This statement assigns 10 to a$b = 15;               //This statement assigns 15 to b if( $a >$b)           // Checks whether  a is greater than b i. e. … Read more Conditional Statements in PHP

What is Google Webmaster? Google Webmaster or Search Console that helps you to look insight into your website. Such as, how many URL are indexed. How many back links your website have?  What is your website’s average search position in an organic search? Sitemap submission  and all other SEO tasks can search console can do. … Read more What is Google Webmaster?

## A Website Design Tutorial

A Website Design Tutorial For website design,  plenty of languages come in mind, like, HTML, JavaScript, CSS, PHP, ASP, Perl and many more. Furthermore, it depends upon your need that you want a website just for publishing articles, some videos and images or you want a website in which your clients can create account and … Read more A Website Design Tutorial

## Brainstorm of Blogging

I started   Blogging journey with Blogger and WordPress in 2008. When I was doing M.Sc( Computer Science & Technology) not for Blogging or digital marketing purpose but to learn how to make a website. Further,  in 2011  I developed a website ATMS College College and learnt many languages. Such as, HTML, JavaScript, PHP, ASP, … Read more Brainstorm of Blogging

## B2B And B2C Sales

B2B And B2C Sales Business to Business (B2B) Business To Consumer(B2C) are very popular words in marketing but when it comes to distinguish between two there is little bit confusion. In this post, I am will clarify the difference between both of them. From the figure, usually how business system works is shown. Figure-1 Furthermore, … Read more B2B And B2C Sales