Commit fdb02238 authored by Sylvain's avatar Sylvain

Mis à jour de la documentation

parent 42eda644
......@@ -45,10 +45,12 @@ Laravel 5.8 uses autoload files, so doesn't require you to manually add the Serv
**_Array_**
- [is_indexed_array](#is_indexed_array)
- [array_contains](#array_contains)
**_Time_**
- [sum_times](#sum_times)
- [gte_time](#gte_time)
- [time_to_float](#time_to_float)
**_Url_**
- [current_query_to_array](#current_query_to_array)
......@@ -286,13 +288,32 @@ $urls = public_folder_to_urls("upload/folder/");
La fonction `is_indexed_array()` teste un tableau pour savoir s'il est de type indexé ou associatif
```php
$urls = is_indexed_array(['foo', 'bar']);
is_indexed_array(['foo', 'bar']);
// true
$urls = is_indexed_array(['foo' => 'bar', 'boo' => 'tite']);
is_indexed_array(['foo' => 'bar', 'boo' => 'tite']);
// false
```
#### `array_contains()`
La fonction `array_contains()` teste un tableau contient plusieurs valeurs spécifiées
```php
array_contains(['foo', 'boo'], ['foo', 'bar', 'boo']);
// true
array_contains(['foo', 'tuu'], ['foo', 'bar', 'boo']);
// false
```
#### `time_to_float()`
La fonction `time_to_float()` teste un tableau contient plusieurs valeurs spécifiées
```php
time_to_float('1:23:45');
// 1.3958333333333
```
## Security
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment