what is the use of mysql_fetch_array() function in php ?
This function returns a row from the table as an associative array or numeric array.
Write down the code for upload a file in php..
0) { echo “Error: ” . $_FILES["file"]["error"] . “
”; } else { echo “Upload: ” . $_FILES["file"]["name"] . “
”; echo “Type: ” . $_FILES["file"]["type"] . “
”; echo “Size: ” . ($_FILES["file"]["size"] / 1024) . ” Kb
”; echo “Stored in: ” . $_FILES["file"]["tmp_name"]; } ?>
what is the use of the function " explode() " in php?
This function is used to split a string by special character or symbol in the string, we must be pass the string and splitting character as parameter into the function.
What is use of in_array() function in php ?
in_array used to checks if a value exists in an array
How to retrieve the data from MySQL result set ?
using the methods given below 1. mysql_fetch_row. 2. mysql_fetch_array 3. mysql_fetch_object 4. mysql_fetch_assoc
differences between GET and POST methods ?
We can send 1024 bytes using GET method but POST method can transfer large amount of data and POST is the secure method than GET method .
What is SSL ?
SSL stands for Secure Sockets Layer. This is a cryptographic protocols which provide secure communications on the Internet
How to calculate the sum of values in an array ?
"array_sum" method used for calculate sum of values in an array
What is the use of "ksort" in php?
it is used for sort an array by key in reverse order.
Wednesday, 17 April 2013
PHP Interview Questions and Answers
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment