Releases: imselmon/includeWithVariables-composer-package
Releases · imselmon/includeWithVariables-composer-package
v2
Based on your request, here is the markdown for the includeWithVariables
function:
## Function: includeWithVariables
This function allows you to include a file with variables in PHP.
### Parameters
- `$filePath`: The path to the file you want to include.
- `$variables`: An associative array of the variables you want to include in the file.
### Usage
```php
$variables = ['var1' => 'value1', 'var2' => 'value2'];
$content = includeWithVariables('path/to/your/file.php', $variables);
In this example, path/to/your/file.php
is the path to the file you want to include, and $variables
is an associative array of the variables you want to include in the file.
The function will return the content of the file as a string.
This function is part of the `codersalman/include-with-variables` library, which is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).
Full Changelog: v1...v2
1.0
Init
Full Changelog: https://github.com/codersalman/includeWithVariables-composer-package/commits/v1