PHP interview Questions
Q:-51. What is the value of $a in the following program?
$x ="5 Coin"
Output : 25
Q:-52. How to delete a file from file system using PHP?
Unlink() function deletes the given file from file system.
Q:-53. What is mean by an associative array in PHP?
Associative arrays are also an array with string keys.
Q:-54. What is the use of rand() function in PHP?
rand () function is basically used to generate random number in PHP.
Q:-55. How to find the length of the string in PHP?
Strlen() function is used to count the length of the string.
Q:-56. Why we use $_REQUEST super global array in PHP?
We use $_REQUEST super global array in PHP to collect the data value from $_GET, $_POST and $_COOKIES variable.
Q:-57. What is the output of the following program?
Q:-58. What is Apache Configuration file typically called?
The name of the Apache Configuration file named is Httpd.conf
Q:-59. Give the some example of the super global array in PHP?
$_GET, $_POST, $_SESSION, $_COOKIES, $_SERVER, $_REQUEST
Q:-60. How would you determine the size of a file in PHP?
The filesize() function return a file size in bytes
Q:-61. What are the encryption functions in PHP?
crypt() function and md5()function.