This commit is contained in:
Torsten 2025-05-28 20:19:51 +02:00
parent cc2ec3b61c
commit 0b86322e88
2 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,5 @@
```php
function count_capitals($str) {
return strlen(preg_replace('![^A-Z]+!', '', $str));
}
```