还可以使用string函数来报告字符串属性,如子串的长度或位置,例如
You can also use string functions to report string attributes such as length or position of a sub-string, for example
在这种情况下,将输入节点与一个名为id的节点相比较,id节点的子文本节点由传递给函数的Name字符串构成。
In this case, you compare the input node against a node named id that has a child text node made of the name string passed in to the function.
标记的属性和子元素都是单个字符串,因此,可以使用concat函数连接它们。
The attributes and subelements of the tag are each a single string, so you compose them using concat .
如前所述,contains函数实现子字符串匹配,因此对于以上查询返回true。
As previously mentioned, the contains function implements sub-string matching and therefore returns the value true for the above query.
函数地作用是:返回子字符串可以。
函数的作用是:查找子字符串出现次数。
The substr_count() function counts the number of times a substring occurs in a string.
函数的作用是:查找子字符串出现次数。
The substr_count() function counts the number of times a substring occurs in a string.
应用推荐