Home > Article > Backend Development > php include() implementation method with parameters_PHP tutorial
I didn’t succeed in inlcude with parameters before. Today I saw an article and solved it decisively. For example, I can include('a.php?site=www.bKjia.c0m') and then call the a.php page. It can be obtained directly via $_GET['a'];.
Detailed explanation of specific methods
Example: Suppose you need to call inc.php?para=3 in index.php,
inc.php
The code is as follows
|
Copy code
|
||||||||||||||||||||
index.php
|