They take in a function as a parameter to use when a match is found. This function receives the match array as a parameter and returns a modified string that is used as a replacement.
你可以为preg_replace_callback指定某个函数为参数,此函数能接收匹配结果数组为参数,并将数组修改后返回,作为替换的结果。
Both versions take a function to apply at each node that returns a replacement node (or the original node).
两个版本均在各节点应用一个函数来返回替换的节点(或原始节点)。
If Kyoto is scrapped, it could take several years to negotiate a replacement framework, the source added, a delay that could strike a terminal blow at efforts to prevent dangerous climate change.
如果《京都协议书》被丢弃,那么将需要几年的时间来议定一个新的替代框架。消息来源补充道,任何延迟都是对防止危险气候变化的种种努力的致命打击。
A proper implementation would take a closer look at the replacement string.
恰当的实现应该进一步检查替换字符串。
Be sure to take the old one with you to find a correctly matching replacement.
记得把旧的带上,以便找到匹配的挡板阀。
White House officials have said the process of nominating Justice John Paul Stevens's replacement will take several weeks, with an announcement of a candidate possible in late May.
白宫要员已经说了提名法官JohnPaulStevens ' s的继任者的进程将会持续几个星期,在五月底将有可能公布一名候选人的消息。
New research suggests the risk of developing breast cancer for women who take combined hormone replacement therapy may have been underestimated in earlier studies.
新调查表明,早期的研究可能低估了接受混合激素替代疗法的女性患乳腺癌的风险。
Unfortunately, a replacement instrument isn't always available. Take, for example, the HP8902A RF measuring receiver.
不幸的是,一种仪器并不总是存在可更换的目标,例如,HP8902ARF测量接收机。
Most CF patients have severe exocrine pancreatic insufficiency and must take pancreatic enzyme replacement therapy, the authors note.
作者注意到,大部分CF患者伴有严重胰腺外分泌功能不全,而且必须采取胰酶替代治疗。
If unscheduled maintenance is required, how long will it take to find a replacement aircraft and will that aircraft be of the same type and quality as my original aircraft?
如果需要进行非计划内维护,你需要多长时间找到一架与我原来飞机同型号、同质量的替换运力?
The Pre-registration buyer if forget your admission card, take your business card to "Pre-registration buyer's license replacement" then have a new one.
预先登记买家如果忘记携带您的入场卡,可带上本人名片到“预先登记买家换证处”补办。
If I fail (F) a course, I will have the opportunity to take a comprehensive grade replacement exam covering the material for the whole course.
我知道万一我的某一门课程学习没有通过,我将可以参加该门课程的补考,补考内容涉及整个课程的内容。
The single-side adhesive felt can be replaced periodically; and during replacement, take off the worn felt and then adhere a new layer of felt.
所述的 单面带胶毛毡可定期更换,更换时将磨损的毛毡揭下来,重新粘附一层即可。
Children who had an artificial valve replacement may need to take anticoagulants (blood thinners) to prevent blood clots from forming on the artificial valve surfaces.
接受人造瓣膜置换的儿童需要服用抗凝药以防止血凝块在人造瓣膜表面上形成。
Friedman will stay in place until a replacement is found, and said in a statement: "I believe it is an appropriate time to introduce new leadership to take the company to the next level."
弗里德曼将留在地方,直至更换发现,并在一份声明中说:“我相信这是一个适当的时机推出新的领导人采取该公司一个新的水平。”
As the repairs will take awhile, we will send over a replacement unit for you to use later this afternoon.
由于修理要花点时间,今天下午晚一点我们会送一套更换装置给您们使用。
Any consumer that finds green muscle in a product should take it back to the place of purchase and seek a refund or a replacement product.
消费者在鸡肉产品中发现绿色现象时,应该将产品退给经销者,获取退款或更换产品。
Any consumer that finds green muscle in a product should take it back to the place of purchase and seek a refund or a replacement product.
消费者在鸡肉产品中发现绿色现象时,应该将产品退给经销者,获取退款或更换产品。
应用推荐