说一个单词

功能 singular($string),将复数单词转换为单数。为了得到完美的结果参数,$string 应该是一个单词。该函数将返回 string。

echo singular("books"); //prints 'book'