Skip to main content

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 2
echo " This is 2"; // this statement will be executed
break;
case 3:      // If the value of var is 3
echo " This is 3"; // this statement will be executed
break;
}
_____________________________________________________________
For output and program execution see the video
                                                            

Comments

Popular posts from this blog

Top Browser's Plugins that Every Blogger Should Know

To know statistics of your blog or website or others, it helps to understand the performance and necessary actions to take. Furthermore, to help you there are many plugins are developed. But, many bloggers do not know that there are bundels of free plugins are that can help you to understand your website. Such as, what runs, alexa rank plugin, moz rank  plugin and many more. Im going to some of the important plugins that every bloggers should install.

1- Alexa Traffic Rank and Alexa Rank Plugin - What  happens when you want to know about  alexa rark of websites you are browsing. You open the url "https://www.alexa.com/siteinfo" and put website name. But these plugins show the alexa rank of browsed websites in the right side of address bar and make your life easy.
Link for Alexa Traffic Rank
2- What Runs - This  plugin is very useful when you want to about technologies a website is running. Such as, server information, server side scipting language, client side scripting langua…

Social Media and Submission Directories that Can Help to Grow Your Web Traffic

When your blog or website is new it will not be able to get traffic from search engines. Then you need to use social media and submission directories where you will submit your  articles' link. If somebody clicks on the link your article will open and blog will drive traffic. But some submission directories takes long time to approve and some demands reciprocal links which are backlinks from your blog and most of them charge money. Here, I am going to list some social media website and  submission directories which do not take long time to approve.  You can submit your articles link very easily.

1- www.facebook.com- This will be the first  the first  choice of any blogger to submit post link to drive traffic. Further, there are many pages and groups that are running. You can find of your own category and can submit your blog posts.
2- www.medium.com-  This is a very good plateform where you can submit you posts links and even you can write articles. Making account in Medium is ve…

How to Drive Refferal Traffic from Quora

Quora is a very popular question and answer forum. And you must have noticed that when you type a key word in search engine you get answers from Quora. Furthermore, digital  marketers and bloggers are using Quora to drive traffic to their blogs or websites.

One of the main reasons of poularity of Quora is its simple user iterface and quality of questions and answers. Moreover, you can find answers of basic level to advance even research level of all walks of life.

Here the main point is how to drive traffic from quora, so I will come on point. And I am going to describe the  methods and process to drive traffic.

1- Search Questions Related to Your Blog-  It is very important to find questions relevent to your blog. Further, find the people  who are working on your blog niche. Both the above mentioned steps are important and the help to build your connections.
2-  Answer the Questions with Quality Answers- If  you answer the questions with quality. Your
answers will get more upvotes and…