Php 1000$ job Interview Most Asked questions & answers Revealed

Php developer interview questions and answers for experienced

 
Today I’m sharing  questions that were asked to me  in php developer job vacancy & I successfully got 1000$ job

Must Read
Best Solutions for Asset Recovery & Investment Recovery in IT

 The process of recovering the cost of old and unemployed resources is known Asset Recovery. The process takes place through Read more

Factors to Consider While Buying a Portable Two Way Radio

   Looking for the right two-way radio can be a tough task, especially if you are looking at it online. In Read more

Personal alarm systems-Looking for a personal alarm?

  Read more about Personal alarm systems When you’re active and enjoy working in the yard or planting those spring and Read more

CRM for Windows vs MAC– The Top 5 Differences

 There are many different platforms of CRM that can be used on computers today. Each of these platforms can be Read more

# Why PHP is a widely-used?
PHP is a widely-used because there is no cost to download PHP compared to many other languages like Microsoft’s ASP where you are charged for usage .
 
#whats PHP fullform
PHP fullform is Hypertext Preprocessor
 
#Tell me why we use IF ELSE in PHP with example
IF ELSE is used when user enters particular input  then IF answers matches with users input it gives output already defined & else will give by default output as shown below
$favoriteFruit = “APPLE”;
if ( $favoriteFruit == “”APPLE” )
{
echo “Your favorite fruit contains around 7% fibre.”;
}
 
#Why programmer prefer PHP ?
PHP can make many dynamic pages
It can create lot of customisation as per clients requirement
PHP can add, delete, modify data in your database
It can create, open, read, write, and close files on the server
PHP can run on multiple operating system such as Windows, Linux, Unix, Mac OS X, etc.
 
 
#What is the default file extension for PHP files & syntax
The default file extension for PHP files is .php
PHP syntax is as below
<?php
echo “Hello World!”;
?>
 
 
#What are two ways to right Comments in PHP
 
There are two ways to right Comments in PHP
1.Single line
//This is a PHP comment line
 
2.Multi line
 
/*
This is
a PHP comment
*/
?>
 
#Show me how you will subtratct 5,6 numbers in php code
We have to store numbers in variables so i put  5,6 numbers in
$x=5;
$y=6;
In 3rd  variable  $z=$x-$y  i reference $x,$y and finally i use echo $z to display output
<?php
$x=5;
$y=6;
$z=$x-$y;
echo $z;
?>
 
 
#Show me how you will add 5,6 numbers in php code
We have to store numbers in variables so i put  5,6 numbers in
$x=5;
$y=6;
In 3rd  variable  $z=$x+$y  i reference $x,$y and finally i use echo $z to display output
<?php
$x=5;
$y=6;
$z=$x+$y;
echo $z;
?>
 
#Show me how you will find modulus of  5,6 numbers in php code
We have to store numbers in variables so i put  5,6 numbers in
$x=5;
$y=6;
In 3rd  variable  $z=$x%$y  i reference $x,$y and finally i use echo $z to display output
<?php
$x=5;
$y=6;
$z=$x%$y;
echo $z;
?>
 
#Show me how you will Divide 5,6 numbers in php code
We have to store numbers in variables so i put  5,6 numbers in
$x=5;
$y=6;
In 3rd  variable  $z=$x/$y  i reference $x,$y and finally i use echo $z to display output
<?php
$x=5;
$y=6;
$z=$x/$y;
echo $z;
?>
 

Originally posted 2015-06-16 12:11:30.

Leave a Reply

Share this ArticleLike this article? Email it to a friend!

Email sent!