I want to know if sending huge records to another php file functions cost more than to create functions in a current php file?
For example, in my current php file upload.php  I have two type of arrays:
$result1 and $result2, each with  lots of records and I want to upload these records to my database with functions name upload_type1 and upload__type2.
Is it better to:
- Create these functions in my current file?
- Create these functions in a different file like databaseupload.php, and then send the $resultarray to databaseupload.php to have cleaner code?
Does the second way cost more?
I want to know what way is the better programming way. Thanks for your help!
 
     
    