PHP Interview Questions – Set 07

How to stop the execution of PHP script? The exit() function is used to stop the execution of PHP script. How to read a file in PHP? PHP provides various functions to read data from the file. Different functions allow you to read all file data, read data line by line, and read data character … Read more

PHP Interview Questions – Set 06

What is the array in PHP? An array is used to store multiple values in a single value. In PHP, it orders maps of pairs of keys and values. It saves the collection of the data type. How to download file in PHP? The readfile() function is used to download the file in PHP. int … Read more

PHP Interview Questions – Set 05

Explain some of the PHP string functions? There are many array functions in PHP: strtolower() strtoupper() ucfirst() lcfirst() ucwords() strrev() strlen() How can you retrieve a cookie value? echo $_COOKIE [“user“]; Explain PHP variable length argument function. PHP supports variable length argument function. It means you can pass 0, 1 or n number of arguments. … Read more

PHP Interview Questions – Set 04

What is htaccess in PHP? The .htaccess is a configuration file on Apache server. You can change configuration settings using directives in Apache configuration files like .htaccess and httpd.conf. How to delete file in PHP? The unlink() function is used to delete a file in PHP. bool unlink (string $filename) Explain setcookie() function in PHP? … Read more

PHP Interview Questions – Set 03

What are magic constants in PHP? PHP magic constants are predefined constants, which change based on their use. They start with a double underscore (__) and end with a double underscore (__). What does isset() function? The isset() function checks if the variable is defined and not null. What is “echo” in PHP? PHP echo … Read more

PHP Interview Questions – Set 02

What was the old name of PHP? The old name of PHP was Personal Home Page. What is the use of count() function in PHP? The PHP count() function is used to count total elements in the array, or something an object. Which programming language does PHP resemble to? PHP has borrowed its syntax from … Read more

PHP Interview Questions – Set 01

What is PEAR in PHP? PEAR is a framework and repository for reusable PHP components. PEAR stands for PHP Extension and Application Repository. It contains all types of PHP code snippets and libraries. It also provides a command line interface to install “packages” automatically. How many data types are there in PHP? PHP data types are … Read more

PHP Interview Questions

PHP Interview Questions – Set 07 PHP Interview Questions – Set 06 PHP Interview Questions – Set 05 PHP Interview Questions – Set 04 PHP Interview Questions – Set 03 PHP Interview Questions – Set 02 PHP Interview Questions – Set 01