I want to call a function in one PHP file from a second PHP file and also pass two parameters to that function. How can I do this?
I am very new to PHP. So please te
Yes include the first file into the second. That's all.
See an example below,
File1.php :
Now Using include (http://php.net/include) to include the File1.php to make its content available for use in the second file:
include
File1.php
File2.php :