Variables are used in PHP and other programming languages to store dynamic values.
Variables can be used in any PHP program to store information.
How to create or declare a variable in PHP?
Variables are declared using $ (dolar) sign followed by _ (underscore) or alphabets.
If we want to declare a variable named First Name we can write it as:
A variable name can contain Alpha Numeric Characters with or without underscores.
A variable can store values of any data type like strings, bool, float, double or integer.
Remember that in PHP the variables are declared in the same line where a value is assigned to them.
Unlike other programming languages there is no need to firstly declare a variable and then assign a value to it.
You can assign values and declare a variable at the same time.
Here is an example:
$firstName = “Manish”;
If we want to print this variable we can simply write
$firstName = “Manish”;
//Outputs : Manish
Variables in PHP are case sensitive.
Note : In the example given above we have not used single quotes or double quotes while echoing or printing $firstName. But a string cannot be assigned to a variable without the use of double or single quotes.
Consider the example given below
$lang = “PHP”;
echo “We are studying $lang”;
//Outputs : We are studying PHP.
In this example we have written $lang inside double quotes. We will not get any error because the assigned value to $lang variable was a string.
You can watch out Step by Step Tutorial About Variables in PHP
You can join out Php Training in Lucknow
Top 5 Free WordPress themes for Business Website Development
Enlighten is a free theme by Accespress. This theme has an impressive homepage template. The homepage template contains a Posts Slider which can be used to showcase your top articles or categories.
Another 3 column slider Is there in the home page which is perfect for latest posts or Products & services
You can showcase your achievements which come with auto loading numbers. This section can also be used to showcase your skills.
Below achievements section there is a Introduction Video section. It can be connected with Youtube.
There is a beautiful call to action section with orange background just below the video section.
Client testimonials create a good impact on readers and potential clients. It can be added in the section below call to action section.
A very creative part of this theme is the latest news section with Author or Owner Info that can be connected with the twitter feeds.
You can showcase a client logo carousel as well.
This theme has a multicolumn footer as well.
You can see a live demo of this theme at
Hashone is developed by Hashthemes and it is a very professional looking theme with Red progress bars and icons. It is a multipurpose theme.
It has following Sections:
This theme can work as a single page theme as well as a multi-page theme.
Travel blogging is one of the trending career options. Travel Eye is a theme dedicated to travel bloggers and Tour & Travel Service Providers.
You can see a website developed using this wordpress theme on this URL – http://holidayhillz.com
Promote theme is a treat to eyes. You can configure menu color as per your business logo and see the magic. It can be used with creative icons to create and impression on visitors.
It has a unique world map section that can be use to showcase number of clients and their locations.
This theme is suitable for Startups, Corporate Business and Digital Marketing Agencies.
This wordpress theme is installed and working fine on this website – JobsExams.com
As the name suggests this theme is suitable for Educational Institutes and Communities.
Education hub has a unique color combination of Blue and Yellow which makes the look and feel of this theme magical.
It has a Slider on homepage that can carry some text in the heading and a short paragraph.
You can see this screenshot to see the slider:
Just below the slider there are grids which look really beautiful. This theme is responsive and we have used it to create a Book Swapping Website.
Create a WordPress website in less than 25 minutes
Worpress is one of the best Content Management tool on internet. I am sharing this simple step by step tutorial for creating fast and attractive WordPress website in less than 25 minutes.
Step 1. Buy a domain name for your website. If you don’t want to pay you can start with a dot TK domain name as well. We recommend Bigrock for buying paid domain name. Domain name is important for branding of any website.
Step 2 – Buy a WordPress or Linux Hosting plan. It comes at a cheap price of 70 Rs per month also. We recommend Hostgator to buy WordPress hosting. CPANEL hosting is best for WordPress websites.
Step 3 – Hosting provider will give you 2 or four NAME Servers which look like – ns1.example.com, ns2.example.com etc. Go to your domain control panel and paste the name servers in DNS setting.
Step -4 Inside your hosting panel Go to ADD NEW DOMAIN name section and enter the domain name is bought in step 1.
Step – 5 – Search for Script autoinstaller in your hosting. Softaculous is the most famous autoinstaller and all good hosting panels have it. In the Autoinstaller window look for WordPress script and click install.
Step 6 – Select the domain name on which you want to install wordpress.
Step 7 – Select your website title and tagline. Give a unique admin name and enter a secure wordpress password. The password should be alphanumeric with 10-15 characters.
Step 8 Click Install WordPress button and after some seconds wordpress installation will be finished. You will get wordpress files in your public_html or root folder.
A new database will also be created automatically. You can see all databases in phpMyadmin section.
Step 9 – Go to www.example.com/wp-admin , here replace examplecom with your domain name.
Step 10 – Enter Admin ID and password you created earlier.
Step 11 – Install your desired theme and your wordpress website will be ready after its configuration.
We provide Professional WordPress Training as Well.
You can download wordpress from http://wordpress.org and install it in locahost also. You can later migrate your website to web hosting.
सर्च इंजन ऑप्टिमाइजेशन SEO क्या होता है यह जानने से पहले आपको इसके प्रयोग होने वाले शब्दों को समझना चाहिए :
सर्च इंजन ऑप्टिमाइजेशन या SEO प्रायः तीन शब्दों से मिल के बना है |
सर्च का अर्थ है – किसी व्यक्ति, वस्तु, जगह या अन्य जानकारी को खोजना
इंजन का अर्थ है – यूजर द्वारा एन्टर की जाने वाली जानकारी को डेटाबेस में पोस्ट करने और उस जानकारी के अनुसार उत्तर को यूजर को दिखने की तकनीक |
सबसे अधिक प्रयोग होने वाले सर्च इंजन हैं :
ऑप्टिमाइजेशन का अर्थ है – अपनी वेबसाइट की कुशलता को इस प्रकार से बढ़ाना की वो यूजर के सवाल के अनुसार सबसे सटीक उत्तर दे सके |
यूजर द्वारा पूछे जाने वाले सवालों में आने वाले प्रमुख शब्दों को KEYWORDs या मुख्य शब्द कहा जाता है | “डिजिटल मार्केटिंग क्या है” में कीवर्ड है “डिजिटल मार्केटिंग” और इस पूरे वाकय को KEYPHRASE कहते हैं |
यदि आप किसी व्यवसाय के माध्यम से किसी को सेवा प्रदान करते हैं तो उस सेवा के लिए आपको keywords भी सोचने पड़ते हैं | ये keyword आपके व्यवसाय से सम्बंधित ही होते हैं | हमें रिसर्च करनी पड़ती है की इसी व्यवसाय से जुडी कौन सी सूचना गूगल, बिंग, याहू इत्यादि सर्च इंजन पर यूजर खोज रहे हैं और उस सूचना को ढूँढने के लिए वो कौन से keyword का प्रयोग कर रहे है |
उन KEYWORDS को अपने वेब पेज में हम TITLE टैग के अन्दर लिखते हैं | अपने वेब पेज के META DESCRIPTION टैग में भी उस कीवर्ड को लिखना चाहिए |
आपके वेब पेज में HEADING टैग भी प्रयोग होते हैं जिसमे से सबसे बड़ी heading में सबसे प्रमुख कीवर्ड का प्रयोग कोना चाहिए और यदि आप इमेज का प्रयोग कर रहे हैं तो इमेज टैग के एट्रिब्यूट में भी उस कीवर्ड का प्रयोग अनिवार्य है |
इस प्रक्रिया को सर्च इंजन ऑप्टिमाइजेशन कहते हैं |
सर्च इंजन ऑप्टिमाइजेशन से वेबसाइट पर आने वाले विजिटर की संख्या बढ़ जाती है और व्यवसाय को लाभ पहुचता है |
Social Bookmarking is a method in which people bookmark links or files which they would like to read again. This bookmarking can be done in web browsers but some websites offer the service of bookmarking favorite content online as well. These websites are termed as Social Bookmarking websites. These websites can be used for Digital Marketing and increasing traffic to those links by publicly sharing what you were reading.
We are providing our picks for the top 10 Social Bookmarking Websites on internet:
Reddit is an American website for aggregation of news socially, giving rating to web content and as a discussion forum as well. You can share images, videos and other website links with others. Other people can like or dislike your content. Reddit is one the oldest and biggest Social Bookmarking website.
BibSonomy.org is not just a social bookmarking website; it is also a team work flow based E-Publication management system. It is online since 2006. This famous blue social bookmarking website is developed using Java.
Diigo.com is a freemium social bookmarking website that can be used to tag web pages and share and access educational social bookmarks. It provides the functionality of online sticky notes as well.
Citeulike.org is a free website and as the name suggests it can be used to share interest and like based content with other scholars and researchers. It uses the content of social bookmarking to share links of scientific and research based content on web.
Sharethis.com provides free clickable buttons that can be posted on any site to let people share the content with billions of internet users via email, AIM or simple text messages.
It will clear to you after reading this article that social bookmarking is primarily done in order to tag content on internet that others can read as well. It can increase traffic to the bookmarked url.
If you are using any social bookmarking tool for digital marketing please let us know by commenting on this article.
Cornerstone content or articles are a way of representing the most powerful and well written articles on your website.
If you are proud of any articles and think that article can represent your website then it is your cornerstone article.
If you are using WordPress and for SEO you are using Yoast SEO then you will find a small checkbox asking –
Is this your cornerstone article ?
As per the automated suggestions provided by yoast the minimum words per article should be 900 if you want it as your cornerstone article.
The focused keyword in your cornerstone post or article should not be used with any other post.
You must include the focused keyword in your Page Title and Meta Description.
You can take help of this pyramidal shape to understand the concept of Corner Stone article.
In this shape home page is the entry point of our website. Entry page is the most important page.
After homepage you can see two pages in the next level. These two pages are Cornerstone Content of your website.
This feature was introduced in WordPress 4.6 Update.
This image tells us that the corner stone or most important articles of our website should be visible or clickable on the home page.
Navigation should be clear and easy.
If you have articles belonging to various categories like we have on our website, you can assign cornerstone articles for respective categories.
Read Our 101 Digital Marketing Articles
Read more about this topic on official website of Yoast
Social media marketing is very important in order to have a strong presence on all major Social Networking Platforms like Facebook, Twitter, Instagram, Linked In, Google Plus etc.
Social media optimization of website is essential step in controlling the content that will be shared on social networks.
Many users rely on posting long tail queries on internet. Proper use of long tail keywords will result in better search results ranking.
We have already mentioned that people are using mobile devices to access internet. Voice search assistants like – Contana, Siri etc. are popularly used by billions of user. Queries like – Restaurants Near Me, Book a Flight etc. are very commonly used voice search keywords.
SEO professionals should do proper research on these keywords and use them in articles creatively.
If you are not using SSL in your url then you must think about safety and security of your website and its users. You should switch to HTPPS as soon as possible.
Services like Cloudflare or Godaddy SSL will help you in getting a SSL certificate.
After switching to https, do not forget to add the new versions to Google Analytics and Google Web Master Tools.
Migrating to HTTPS will help you in :
Make sure you are using a trustworthy hosting. Use strong passwords for administrators and try using ssl certificate as mentioned in this point. Use cloud services to store and retrieve data. Configure web.config and .httaccess files as per security protocols. Use robots.txt to prevent unauthorized access.
Historical Optimization will help you in improving the search rankings of those articles which are already performing well or were performing well in past. These articles need little amount of attention and can do wonders for you. Read more about Historical Optimization
You should always keep best User Interface for your website. Better UI will result in improved user experience. User Experience depends on many factors like:
Last Point in this list but not the least
There are many ways of getting quality backlinks. We have discussed about gaining baclinks in our post about Quality Backlinks
There is nothing more important in this list than getting quality backlinks. It will help you in getting better DA and PA score which is a symbol of improved search ranking.
If you think you can suggest any other method for SEO please share your thoughts in the comment section.
Instant Articles is a service of facebook that can be used to monetize the mobile traffic coming to a particular business or fan page of facebook.
In order to enable Instant Articles on any facebook page you have to sign up on https://instantarticles.fb.com/
Signup with a facebook ID that has admin rights of Facebook Fan Page as well.
After Signing Up and Logging in you will be asked to select the page for which you want to enable Instant Articles.
Here you have to select your page which receives good traffic.
After selecting the page you will be redirected to Publishing Tools tab of your page.
Here you have to open this tab.
Then you will see new menu of Instant Articles in your page, see this image.
Here you have to go to the Configuration section.
In Configuration section go to Tools Section and Click – Connect Your Site
You site will work as a source of articles.
Articles that are already written on your blog or website can be fetched by facebook as RSS feeds.
To connect you website simply copy and paste the META tag in your websites Header.php or in between Opening and closing <head> tag.
<meta property=”fb:pages” content=”12212121″ />
Here content is your Facebook Page ID. Replace it accordingly.
If you are using wordpress blog then you have to Install Instant Article by FB plugin and there you can simply enter the ID.
After verification you will see Your Registered URLs as you can see in my image.
In the Production RSS feed option, you have to put your Blog’s RSS Feed URL.
In WordPress Simply Put /feed after your home url.
In Blogger Put /rss.xml to get the feed url.
If you are on PHP or Asp.net website then you have to create and XML feed from your database and enter here.
Once you will put feeds correctly you will see you latest articles in the Production Articles Section.
These are you instant articles.
Articles will be in Unpublished state because they must be reviewed and approved by facebook.
After completing the setup Click Submit for Review Button.
You have to upload a Transparent Logo in the Style Section of Instant Articles.
Form is an important element in website development process.
Forms are used to collect actionable data from users. Without forms, users won’t be able to contact business owners easily.
Forms are also important in increasing engagement on your website.
WordPress has thousands of plugins that can be used to create interactive and attractive contact forms.
We are sharing our list of Form Plugins in wordpress which are used by us on more than 200 websites.
Contact Form 7 is one of the most famous and used plugin on wordpress depository. It is used by millions of users because it is awesome.
Using Contact form 7 you can create contact forms in minutes. You can select any form element from the tabs given in this plugins setting window.
Once the form is created, you will get a SHORTCODE which can be placed inside any Page, Post or Widget.
One big advantage of Contact form 7 is that it is automatically styled in any theme.
You can also use reCaptcha to prevent bots and spammers from posting useless crap.
Submitted values are automatically sent to your administrative email.
You can download it for free from this url –
You can see this plugin in action –
There are other plugins which can be used in conjunction with Contact form 7 to store the values in database as well.
We are a fan of VFB. It has a unique style which fits it in any theme. We have used this plugin on many websites. Form creation is very easy. You can use simple drag and drop to insert any form input in your form. You can apply validations as well.
All the values that are submitted in this plugin can be viewed in the Entries section in wordpres dashboard.
This plugin also has a math captcha inbuilt.
You can see this plugin in action –
Signup Newsletter forms are commonly used for Increasing Conversion and Emails Lists now a days. Many websites are using Pop-Up forms to increase engagement on their website and getting more subscribers to their emailing lists.
We have tested an used many Pop-Up form tools which provide Static HTML forms that can be used in pages or side-bars also.
Pop-Up tools are very important in getting:
Some of those tools are listed below:
Hello Bar is an interesting and creative Pop Up form for your website.
It appears as a menu bar with your form field.
Form field can be:
You can see Hello bar Customization window here:
You can see Hello Bar in Action on this screenshot:
2. Mailerlite – Free and Paid.
Mailerlite is an alternative to Mail-Chimp.
Note – All new Accounts in Mailerlite are approved by them, they usually disapprove accounts for spamming reasons.
In mailer lite you have to add your residential address.
You must verify your domain name on which you want to use popup code.
Mailerlite will send emails to account of your domain name only.
For Example – [email protected]
There is no option of adding free email providers email.
You have to click on the confirmation email sent to your website’s email to verify the domain name.
Create your subscriber group to receive data of your subscribers.
You must click on the Forms Tab to create your first popup form.
Chose Popup Pr-Styled from E-Commerce, Travel, Full Screen etc. categories.
You can customize the design by changing color theme, text and images.
Once you are done editing you can chose the trigger to show the popup.
3. Wishloop – Paid Plans
It can be used to convert your website visitors into customers by providing suitable call to action buttons and Pop-Up forms.
4. Mailchimp – Email Marketing Platform
Mailchimp is one of the most popular tool used for online conversions. It gives u a codr e which can be embedded on any website to output Pop-Up or Static forms.
These forms can be used to populate your subscriber list which can be used for re-marketing and conversion.
We are using Mailchimp on many websites and it works smoothly. It has a wordpress plugin as well.