functionreverseWords($words){$pattern='/\S+/';returnpreg_replace_callback($pattern,function($word){returnstrrev($word[0]);},$words);}echoreverseWords('The quick brown fox jumps over the lazy dog.');echoreverseWords('double spaced words');
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.
For php