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