php get function from different file

Solutions on MaxInterview for php get function from different file by the best coders in the world

showing results for - "php get function from different file"
Cameron
11 Nov 2020
1<?php
2    function first($int, $string){ //function parameters, two variables.
3    	return $string;  //returns the second argument passed into the function
4  	}
5?>
6  
7<?php
8    include 'File1.php';
9    echo first(1,"omg lol"); //returns omg lol;
10?>