Can you please explain the difference between include and require?
Answer Posted / Surash Shing
Both 'include' and 'require' are used in PHP to insert code from external files into a script. The main difference is that 'require' issues an error and stops the execution of the script if it cannot find the included file, while 'include' simply gives a warning and continues executing the script without the included code.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers