项目作者: anovsiradj

项目描述 :
PHP Primitive OOP
高级语言: PHP
项目地址: git://github.com/anovsiradj/php-primitive.git
创建时间: 2018-08-20T16:43:02Z
项目社区:https://github.com/anovsiradj/php-primitive

开源协议:MIT License

下载


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