update
This commit is contained in:
parent
7b98857eff
commit
4502ffbedb
|
@ -9,15 +9,13 @@ This PHP extension provides a set of useful functional-style operations on PHP a
|
||||||
|
|
||||||
Method names and functionalities are inspired by [Kotlin.Collections](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/).
|
Method names and functionalities are inspired by [Kotlin.Collections](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/).
|
||||||
|
|
||||||
It may take me a really long time to fully implement this extension. Feel free to contribute.
|
|
||||||
|
|
||||||
## 2. Documentation
|
## 2. Documentation
|
||||||
|
|
||||||
See [stubs](stubs/) directory for signature of all classes and methods of this extension, with PHPDoc.
|
See [stubs](stubs/) directory for signature of all classes and methods of this extension, with PHPDoc.
|
||||||
|
|
||||||
## 3. Example
|
## 3. Example
|
||||||
|
|
||||||
Here is a simple example.
|
Here is a simple example for how to work with arrays gracefully using this extension.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$employees = [
|
$employees = [
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <php.h>
|
#include <php.h>
|
||||||
#include <php_ini.h>
|
|
||||||
#include <zend_interfaces.h>
|
#include <zend_interfaces.h>
|
||||||
#include <ext/standard/info.h>
|
#include <ext/standard/info.h>
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
// @Author CismonX
|
// @Author CismonX
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef PHP_COLLECTIONS_FE_H
|
#ifndef PHP_COLLECTIONS_ME_H
|
||||||
#define PHP_COLLECTIONS_FE_H
|
#define PHP_COLLECTIONS_ME_H
|
||||||
|
|
||||||
PHP_METHOD(Collection, __construct);
|
PHP_METHOD(Collection, __construct);
|
||||||
PHP_METHOD(Collection, addAll);
|
PHP_METHOD(Collection, addAll);
|
||||||
|
@ -114,4 +114,4 @@ PHP_METHOD(Collection, values);
|
||||||
|
|
||||||
PHP_METHOD(Pair, __construct);
|
PHP_METHOD(Pair, __construct);
|
||||||
|
|
||||||
#endif // !PHP_COLLECTIONS_FE_H
|
#endif // !PHP_COLLECTIONS_ME_H
|
||||||
|
|
Reference in New Issue