...
This commit is contained in:
parent
cc2ec3b61c
commit
0b86322e88
2 changed files with 82 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
```php
|
||||
function count_capitals($str) {
|
||||
return strlen(preg_replace('![^A-Z]+!', '', $str));
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue