https://github.com/anovsiradj/php-primitive
PHP Primitive OOP
https://github.com/anovsiradj/php-primitive
oop php primitive scalar
Last synced: about 1 year ago
JSON representation
PHP Primitive OOP
- Host: GitHub
- URL: https://github.com/anovsiradj/php-primitive
- Owner: anovsiradj
- License: mit
- Created: 2018-08-20T16:43:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-13T22:28:50.000Z (over 7 years ago)
- Last Synced: 2025-04-12T03:56:49.793Z (about 1 year ago)
- Topics: oop, php, primitive, scalar
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Todo(s)
- `strings` default value for argument-N
# Strings
https://secure.php.net/ref.strings
caveats
- `ctype_*()` is not available
- `str_replace()` cannot passing-by-reference for `$count` (4th arguments)
- `similar_text()` cannot passing-by-reference for `$percent` (3th arguments)
- `sscanf()` ?
be carefull with function which could return `false` (e.g `strpos()`, `stripos()`, etc)
input only string,
output only string,
if output not string,
string will not be updated and the result will be directly returned from `__call()` (e.g `explode`) or `return ((string) false);`
# numbers (todo)
https://secure.php.net/manual/en/ref.math.php
# arrays
https://secure.php.net/manual/en/ref.array.php
caveats
- `compact()` ?
- `extract()` not working / ignored because inside function
- `isset()` aka `array_key_exists()`
- `list()` is not avaiable
- `range()` is not avaiable
---
License MIT.
what is this? idk.
https://stackoverflow.com/questions/6623130/scalar-vs-primitive-data-type-are-they-the-same-thing