最佳答案
如何得到给定字符串的每个单词的首字母?
$string = "Community College District";
$result = "CCD";
我找到了 javascript 方法,但不确定如何将其转换为 php。