Category: PHP Interview Questions

php interview questions

PHP is a server-side scripting language used for web development. RASMUS LERDORF is the father of PHP. PHP 5 and the above php 5 versions works with MySQLi (Database Management System). here i Stands for ** Improved **.

Basic ProgramsPhpPHP Interview Questions

How PHP Reverse Number Program Works?

by:

It is very easy to reverse a number using PHP string function strrev(). But here i will show you without using strrev() function. crayon-61755139406ba906684452/ Output: 54151

GeneralPhpPHP Interview Questions

Create a chess board using for loop php

by:

In this Post we will create a chessboard pattern, an 8×8 grid of black and white squares like this: Use table width=”270px” and take 30px as …

GeneralPhpPHP Interview Questions

What is the difference between single quotes and double quotes?

by:

Single quoted strings will display things almost completely “as is.” Variables and most escape sequences will not be interpreted. Double quote strings will display a host …

GeneralOopsPhpPHP Interview Questions

What is the Scope Resolution Operator?

by:

“::” double colons is the scope operator it is used to call methods of a class that has not been instantiated. You should also understand static …

GeneralOopsPHP Interview Questions

How do you load classes in PHP?

by:

Review the “autoload” and “spl_autoload_register” function (note:you should use the later). The autoload function basically triggers a function when a class is instantiated, you can put …

GeneralOopsPhpPHP Interview Questions

What is Polymorphism?

by:

It’s simply the idea that one object can can take on many forms. So in PHP OOP one class “cars” may have two classes that extend …

GeneralOopsPhpPHP Interview Questions

In a PHP class what are the three visibility keywords of a property or method?

by:

public, private and protected. The default is public. Public -> Any class may instantiate the class and call the method or property. Protected -> Only the …

MysqlPhpPHP Interview Questions

How we can retrieve the data in the result set of MySQL using PHP?

by:

1. mysql_fetch_row This function will return a row where the values will come in the order as they are defined in the SQL query, and the …

GeneralPhpPHP Interview Questions

Write a program using while loop

by:

crayon-6175513941233812620753/

PhpPHP Interview Questions

what types of loops exist in php?

by:

In PHP, we have the following looping statements: while – loops through a block of code as long as the specified condition is true do…while – …

PhpPHP Interview Questions

What is Open Source Software?

by:

Software in which the source codes are freely used, modify, and shared by anyone are called Open Source Software. These can also be distributed under licenses …