I am a software engineer currently working @ShopPad, previously @HPE. I like to build websites and web application in PHP, JavaScript, and Golang. I have an unhealthy obsession with Mexican food (🌯)
<?php/**
* Antivirus
* @param string $string
* @return string
*/functionantivirus(string$string):string{returnimplode(".",array_map(function($sentence){$sentence=str_split($sentence);foreach($sentenceas$key=>$value){if($key===0&&$value===' ')continue;else$sentence[$key]=strtoupper($value);break;}returnimplode("",$sentence);},explode(".",str_replace('ie','ei',strtolower($string)))));}echoantivirus('He haD iEght ShOTs of CAffIEne. aFter thaT HE WenT tO SleeP.');// Output: He had eight shots of caffeine. After that he went to sleep.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
PHP 💻