200 more than PHP programming language Logical interview Interview Questions for php and mysql HTML CSS

MySQL, PHP 0 Comments

php technical interview questions php interview questions and answers for experienced php interview questions for freshers php programming language interview questions and answers for experienced candidates advanced php Logical interview questions forPHP developer interview questions interview questions and answers for php and mysql pdf php array programming questions php tricky interview questions Page navigation

Q Difference between operator == and === in PHP programming language
Ans ‘==’ is (equal To) and ‘===’ (identical)

Q How to remove session from in php language
Ans session_destroy();

Q register a variable in PHP session and pass value
Ans session_start();
$_SESSION[“user”] = “usernamepass”;

Q sessions stored in PHP language
Ans sessions are stored on server and file tempery directory of server.

Q difference between include, require, include_once and require_once()

Ans PHP Syntax include() function:- include(“addfilename.php”);
include() function used include files more than once time in single same PHP file

PHP Syntax include_once() function:- include_once(“addfilename.php”);
Include once used file Include only one time in php same file. Second time include is ignored Include file.

PHP Syntax Require() function:- Require(“addfilename.php”);
Require() function used include files more than once time in single same PHP file

PHP Syntax require_once() function:- require_once(“addfilename.php”);
Require once used file Include only one time in php same file. Second time include is ignored Include file.
increase the execution time of a PHP script

Q What is use of MySQL LIMIT & OFFSET

“SELECT * FROM table LIMIT 2, 30”;

2- starting row in mysql table
30 – number of row shoe

SELECT * FROM table LIMIT 10 OFFSET 15

OFFSET 15 – display data after 15

LIMIT 10 = number of data row display

Q Data types in PHP programming language

Ans 4 scalar types in PHP

integer
boolean
float
string

3 compound types in PHP

array
object
callable

And 2 special types in PHP

resource
NULL

Q increase the execution time of a function in php

Ans Function ini_set( )

ini_set(‘max_execution_time’, 300); //300 seconds time = 5 minutes time

Q purpose of @ symbol in Php

Ans @ symbol is used to suppress error messages.

Q Different types of errors available in Php language?

Ans  There are types of errors in PHP language, We have listed all below

E_ERROR in Php language : A fatal error that causes script termination in Php language.
E_WARNING in Php language: Run-time warning that does not cause script termination in Php language.
E_PARSE in Php language: Compile time parse error in Php language.
E_NOTICE in Php language: Run time notice caused due to error in code in Php language.
E_CORE_ERROR in Php language: Fatal errors that occur during PHP initial startup in Php language.
(installation)
E_CORE_WARNING in Php language: Warnings that occur during PHP initial startup in Php language.
E_COMPILE_ERROR in Php language: Fatal compile-time errors indication problem with script in Php language.
E_USER_ERROR in Php language: User-generated error message in Php language.
E_USER_WARNING in Php language: User-generated warning message in Php language.
E_USER_NOTICE in Php language: User-generated notice message in Php language.
E_STRICT in Php language: Run-time notices in Php language.
E_RECOVERABLE_ERROR in Php language: Catchable fatal error indicating a dangerous error in Php language
E_ALL in Php language: Catches all errors and warnings in Php language.

 

interview question for php interview question for php web developer interview question for php programmer interview question for php developer fresher interview question for php fresher interview question for php and mysql php technical interview questions php interview questions and answers for experienced php interview questions for freshers php programming language interview questions and answers for experienced candidates advanced php Logical interview questions forPHP developer interview questions interview questions and answers for php and mysql pdf php array programming questions php tricky interview questions Page navigation