Compare commits
2 Commits
d8ca7594d5
...
64f95bd183
Author | SHA1 | Date | |
---|---|---|---|
64f95bd183 | |||
91b6aca548 |
@ -3,6 +3,7 @@
|
|||||||
## Basic
|
## Basic
|
||||||
- [Arrays](arrays.js) - работа с массивами
|
- [Arrays](arrays.js) - работа с массивами
|
||||||
- [Spread syntax](spread.js) - распаковка массива в аргументы
|
- [Spread syntax](spread.js) - распаковка массива в аргументы
|
||||||
|
- [fetch](fetch.js) - ...
|
||||||
|
|
||||||
## Other
|
## Other
|
||||||
- [Webpack](webpack.md) example config
|
- [Webpack](webpack.md) example config
|
||||||
|
3
JavaScript/fetch.js
Normal file
3
JavaScript/fetch.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fetch('http://example.com/movies.json')
|
||||||
|
.then(response => response.json())
|
||||||
|
.then(data => console.log(data));
|
@ -1,3 +1,4 @@
|
|||||||
# PHP
|
# PHP
|
||||||
|
|
||||||
## ...
|
## std
|
||||||
|
- [`gettype`](gettype.php) - Get the type of a variable
|
||||||
|
18
PHP/gettype.php
Normal file
18
PHP/gettype.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
// gettype(mixed $value): string
|
||||||
|
$value = 1;
|
||||||
|
|
||||||
|
// Return Values
|
||||||
|
// Possible values for the returned string are:
|
||||||
|
//
|
||||||
|
// "boolean"
|
||||||
|
// "integer"
|
||||||
|
// "double" (for historical reasons "double" is returned in case of a float, and not simply "float")
|
||||||
|
// "string"
|
||||||
|
// "array"
|
||||||
|
// "object"
|
||||||
|
// "resource"
|
||||||
|
// "resource (closed)" as of PHP 7.2.0
|
||||||
|
// "NULL"
|
||||||
|
// "unknown type"
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user