In the provided PHP script for file searching, what is the purpose of the 'function' keyword at the beginning of the function definition?

The 'function' keyword in PHP is used to declare a new function. In the provided script, the 'function' keyword is necessary to define the function that will be used to search for files. Without this keyword, the PHP interpreter would not recognize the following code block as a function definition, leading to errors.

<?php

function searchFiles($directory, $searchTerm) {
    // Function implementation to search for files
}

// Call the searchFiles function with the appropriate parameters
searchFiles('/path/to/directory', 'search_term');

?>