Compare commits

...

2 Commits

Author SHA1 Message Date
64f95bd183
add gettype PHP 2021-12-03 03:25:08 +03:00
91b6aca548
add Fetch 2021-12-02 20:41:45 +03:00
5 changed files with 24 additions and 1 deletions

View File

@ -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
View File

@ -0,0 +1,3 @@
fetch('http://example.com/movies.json')
.then(response => response.json())
.then(data => console.log(data));

View File

@ -1,3 +1,4 @@
# PHP # PHP
## ... ## std
- [`gettype`](gettype.php) - Get the type of a variable

18
PHP/gettype.php Normal file
View 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"
?>