Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
Helpers
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Modulus
Helpers
Commits
fdb02238
Commit
fdb02238
authored
May 05, 2020
by
Sylvain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mis à jour de la documentation
parent
42eda644
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
README.md
README.md
+23
-2
No files found.
README.md
View file @
fdb02238
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment