我有一个包含很多单词的数组,但有些句子是大写的。例如:
THIS SENTENCE IS UPPERCASE
this sentece is in lowercase
我想把这两个句子分开\r\n
,但我找不到怎么做
这是我如何检索这个数组:
$result_pk_info = array();
while ($row = odbc_fetch_array($sql_pk_info))
{
$opisanie = iconv("cp1257", "UTF-8", trim($row['opis']));
$id = iconv("cp1257", "UTF-8", trim($row['pacientid']));
$date = iconv("cp1257", "UTF-8", trim($row['data']));
$desc = explode('@#$', $opisanie);
$all_info = "<tr><td>".$desc[1]."</td></tr>";
$result_pk_info[] = $all_info;
}
在$desc
我有单词数组,我想在其中搜索和拆分大写和小写。
那么任何人都可以帮助我吗?
UPD我有类似这种结构的文本:
SENTENCE IN UPPERCASE Sentece in lower case