How to Send an Email Using PHPMailer ?

 Image Source:- Google Images                                                             Many of developers struggle to integrate send mail functionality in a website. So I thought why do we make the easy process for sending mail functionality by post. Here I comes with a simplified process for sending an email using PHPMailer. I integrated this many of websites developed by me using PHP.   I have created my own…

How To Integrate DoubleClick Bid Manager API With Laravel 5.4

In this article I am explaining a simple process to setup Google Bid Manager (DBM) API by PHP Artisan Command with laravel 5.4. You can get campaigns or your line items data either setting up a cron using created command or running command on terminal. First, edit composer.json in the project’s root folder to include the Google Client: { “require”: { “google/apiclient”: “^2.0” } } Next run composer update at shell prompt to pull in the sdk to the vendor folder. php composer.phar install –no-dev Now we would like to…

How To Integrate Facebook PHP SDK With Laravel 5.4

In this article, I am explaining a simple process to set up the Facebook Marketing SDK using a PHP Artisan Command with Laravel 5.4. You can retrieve campaigns or ad account data by setting up a cron job with the created command or running it directly in the terminal. First, edit the composer.json file in the project’s root folder to include the Facebook SDK: { “require”: { “facebook/php-business-sdk”: “3.1.*” } } Next, run composer update in the terminal to pull the SDK into the vendor folder: php composer.phar install –no-dev…

Top PHP7 Interview Questions And Answers for Freshers & Experienced

This article shows up top frequently asked PHP7 interview questions and answers for PHP Developers, This list of PHP interview questions and answers will be helpful for PHP programmers. Question #1 – How array_walk function works in PHP? It is used to update the elements/index of original array. How: in array_walk, two parameter are required.  original array An callback function, with use of we update the array.  Question #2 – How to achieve Multilevel inheritance in PHP7? //base class class a{} //parent class extend the base class class bextends a{} //chid…

PHP Program To Find Odd Even Number

“Find odd even number ” is the basic PHP program for a PHP learner. As you all aware, Odd numbers are not divisible by 2 and Even numbers are divisible by 2.  Example :     Odd number: 3, 5, 7, 9,11     Even number: 2, 4, 6, 8, 10  So here I am gonna explain it with a simple PHP program. Odd Even Number Program :- <?php $number=22; if($number%2==0) { echo “22 is an even number”; } else { echo “22 is not odd number”; } ?> Output…

Swap Two Number Program In PHP

Swap two number generally is the process of interchange two variables with each other. Just suppose you have X whose value 10 there is another number Y with value of 20. Now if we swap these two number with each other then the X value will change to 20 and Y  value will change to 10. So here I am gonna explain with a simple PHP program. Swap Two Number Program :- <?php $x=10; $y=20; echo “Value of x: $x</br>”; echo “Value of y: $y</br>”; $temp=$x; $x=$y; $y=$temp; echo “Value of x:…

Armstrong Number Program in PHP

“Armstrong Number Program” is the initial program from where most of the beginner developers will start to learn and write code in any language. An Armstrong number is a number that is the sum of its own digits each raised to the power of the number of digits is equal to the number itself. Here is an example of check a armstrong number in PHP. Armstrong Number Program :- Below is the simple PHP program to check a number armstrong. <?php $number=153; $sum=0; $temp=$number; while($temp!=0) { $reminder=$temp%10; $sum=$sum+$reminder*$reminder*$reminder; $temp=$temp/10; } if($number==$sum) { echo “It…

Basic PHP Interview Questions and Answers for Freshers

Here I am sharing top most asked basic PHP interview questions and answers for freshers that will helpful for freshers to get a job. All questions are related to PHP programming language so do prepare before the interview. Question #1 – What is PHP? PHP is an open source server side scripting language mostly used for web applications. Its easy to learn compare to other programming language. PHP also a object oriented programming language like java, .net and c++. Question #2 – Who is the father of PHP and when…

Top 35 Frequently Asked PHP Interview Questions And Answers for 1 year experience

According to my experience here I am sharing top 35 frequently asked PHP interview questions and answers for 1 year experiences PHP developer, This list of PHP interview questions and answers will be helpful for PHP experience developer. Question #1 – What is the difference between $message and $$message? They are both variables But $message is a variable with a fixed name. $$message is a variable whose name is stored in $message. For example, if $message contains “var”, $$message is the same as $var. Question #2 – How to include a file…

Adding Two Numbers in PHP

We can add two numbers in PHP as like other programming language. “Two Numbers Addition” is the initial program from where most of the beginner developers will start to learn and write code in any language. Here is an example of add two numbers in PHP. Adding Two Numbers Program :- We use $ symbol to declare variable and add two variables. we take third number to store result in third variable. Below is the simple PHP program to add two numbers. <?php $first=30; $second=20; $third=$first + $second; echo “Two Numbers Sum:…