What is the difference between file_get_contents() and file_put_contents() in php?



What is the difference between file_get_contents() and file_put_contents() in php?..

Answer / Meraj Ahmed

{"file_get_contents": "'file_get_contents' is a PHP function that reads the contents of a file and returns them as a string.","file_put_contents": "'file_put_contents' is a PHP function that writes data to a file."}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How can I know that a variable is a number or not using a JavaScript?

2 Answers  


What is a comment in php?

1 Answers  


How can we make a constant in php?

1 Answers  


•How to upload files using PHP?

3 Answers  


What is meant by nl2br()?

3 Answers  


Explain me what are the main error types in php and how do they differ?

1 Answers  


How to calculate the length of a string?

1 Answers  


How many types of functions are there in php?

1 Answers  


explain in brief type juggling in php?

1 Answers  


What are the main error types in php and how do they differ?

1 Answers  


What is mysql_fetch_row?

1 Answers  


What is the maximum size of a table in mysql?

1 Answers  


Categories