https://github.com/devtronic/call-user-func-assoc
call_user_func_assoc PHP Function
https://github.com/devtronic/call-user-func-assoc
composer-package php php7 reflection
Last synced: 5 months ago
JSON representation
call_user_func_assoc PHP Function
- Host: GitHub
- URL: https://github.com/devtronic/call-user-func-assoc
- Owner: devtronic
- License: lgpl-3.0
- Created: 2017-05-14T19:05:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-27T21:37:09.000Z (almost 8 years ago)
- Last Synced: 2024-12-30T21:29:12.661Z (over 1 year ago)
- Topics: composer-package, php, php7, reflection
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/Devtronic/call-user-func-assoc)
[](https://packagist.org/packages/devtronic/call-user-func-assoc)
[](https://raw.githubusercontent.com/devtronic/call-user-func-assoc/master/LICENSE)
[](https://packagist.org/packages/devtronic/call-user-func-assoc)
# Call User Func Assoc
Calls a function with an associative array.
## Installation
Install it via composer
```sh
$ composer require devtronic/call-user-func-assoc
```
## Usage
```php
23, 'name' => 'Julian']);
// Hello, my name is Julian and I'm 23 years old
call_user_func_assoc('sayHello', ['name' => 'Julian']);
// Hello, my name is Julian and I'm *not set* years old
```
## Testing
`$ phpunit`