An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![Travis](https://img.shields.io/travis/Devtronic/call-user-func-assoc.svg)](https://travis-ci.org/Devtronic/call-user-func-assoc)
[![Packagist](https://img.shields.io/packagist/v/devtronic/call-user-func-assoc.svg)](https://packagist.org/packages/devtronic/call-user-func-assoc)
[![GitHub license](https://img.shields.io/badge/license-LGPL3.0-blue.svg)](https://raw.githubusercontent.com/devtronic/call-user-func-assoc/master/LICENSE)
[![Packagist](https://img.shields.io/packagist/dt/devtronic/call-user-func-assoc.svg)](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`