我想为xpath提供更准确的字母排序。我当前的系统只对该字段的前两个字符进行排序...如果可能,我希望整个字段的顺序。
foreach(range('A','Z') AS $firstletter) {
foreach(range('a','z') AS $secondletter) {
$letters = $firstletter.$secondletter;
if($item->xpath("/Entries
/Entry[
starts-with(
Field42,
'".$letters."'
)
and
Field380 = 'Okay'
]")) {
Field42条目是姓氏(即Brown,Brownstein,Brownwood,Byrnes,..)