私のカスタムphp関数をindex.phpから呼び出そうとしていますが、その関数は別のファイルにあります。それをするにはホ?別のファイルからphp関数を呼び出す方法は?
例:
のindex.php:
<?php
myCustomFunction();
?>
function.php
<?php
function myCustomFunction(){
//some codes
}
?>
はありがとうございます。
include('function.php');
index.php
:あなただけの他のファイルinclude
する必要が