What are the ways to include file in php?



What are the ways to include file in php?..

Answer / Kamaljeet Kaur

In PHP, you can include a file using the 'include', 'include_once', or 'require' keyword. Here's an example:

```php
include('file.php');
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is the difference between for and foreach loop in php?

1 Answers  


What are examples of independent and dependent variables?

1 Answers  


What is PHP?

8 Answers  


Which is better python or php?

1 Answers  


What is the meaning of a persistent cookie?

1 Answers  


What is the difference between for and foreach?

1 Answers  


what is this error "Call to unsupported or undefined function mysql_connect();" and when you will get this?

2 Answers  


Why these language is needed?

3 Answers  


What does odbc do in context with php?

1 Answers  


How we can retrieve the data in the result set of mysql using php?

1 Answers  


What is difference between session and cookie in PHP?

1 Answers  


How to read one character from a file?

1 Answers  


Categories