PHP Fresher Interview Questions and Answers Tes. 1 PDF Download

PHP Fresher interview questions with answers, faqs tes. 1 t. Practice php fresher questions. Here, you may find questions to lear. PHP Fresher Test on, php basics, php data types, variables, constants, php 5.

FAQs. PHP Fresher Test 1

Question: What is PHP?

Answer:

PHP: hypertext processor (PHP) is a server based scripting language, designed for web development to produce dynamic webpages. PHP is frequently used with MySQL to develop high traffic, mission critical applications.

Question: How many data types PHP Supports?

Answer:

PHP supports boolean, integer, float, array, object, double, resource and NULL.

Question: What is syntax to declare variables in PHP?

Answer:

Variables are declared by a dollar sign at start and semicolon at the end. e.g $mcqslearn;

Question: What is the syntax to declare constant in PHP?

Answer:

Constants are declared without a dollar sign at start and all letters in upper case, e.g. MCQSLEARN;.

Question: What is new added in PHP 5?

Answer:

PHP 5 added Zend Engine II with object oriented programming, robust XML support with libxml2 library, SOAP extension with interoperability and SQLite has been bundled with PHP.

Question: What is php.ini?

Answer:

A default configuration file for running applications that require PHP. It can be used to control variables such as upload sizes, file timeouts, resource limits and many other parameters.

Generally php.ini file contains many parameters. The developers may change the following parameters if required: upload_max_filesize, register_globals, safe_mode, post_max_size, max_execution_time.

Question: What are the magic constants used in PHP?

Answer:

Generally seven magic constants are used by PHP developers and programmers: __CLASS__, __DIR__, __FILE__, __LINE__, __METHOD__, __NAMESPACE__ and __FUNCTION__.

Question: What are the magic methods used in PHP?

Answer:

Following are the magic methods, most commonly used by PHP developers and programmers: __construct(), __destruct(), __toString(), __get(), __set(), __isset(), __sleep(), __wakeup() and many more you may find at PHP developer manual