Answers for "php get function from different file"

PHP
0

php get function from different file

<?php
    function first($int, $string){ //function parameters, two variables.
    	return $string;  //returns the second argument passed into the function
  	}
?>
  
<?php
    include 'File1.php';
    echo first(1,"omg lol"); //returns omg lol;
?>
Posted by: Guest on July-12-2021

Code answers related to "php get function from different file"

Browse Popular Code Answers by Language