PHP Clipboard
Random selected notes regarding PHP
- use str_contains to check if a string contains a string (instad of strpos) (8.x)
str_contains(string $haystack, string $needle): bool- also see: str_starts_with() and str_ends_with()
- named parameters allows parameter supply in any order
function someFunc(string $value, array->$options)someFunc(options: $opt, value: $val)