React.js
Angular
Ethical Hacking
Agile
AWS
BlockChain
Cassandra
Cloud
Salesforce
Scaled Agile
TOGAF
DevOps
GIT
Jenkins
Jira
Kibana
Linux
NGINX
Ansible
Artificial Intelligence
Salesforce Basic
in PHP by
What is the main difference between require() and require_once()?

1 Answer

0 votes
by

require(), and require_once() perform the same task except that the second function checks if the PHP script is already included or not before executing it.

(same for include_once() and include())

Related questions

Madanswer
0 votes
asked Jun 23, 2019 in PHP by SakshiSharma
0 votes
asked Jun 23, 2019 in PHP by SakshiSharma
...