Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我是 stackoverflow 的新手。我正在使用 xmppframework 为 iphone 开发一个 xmpp 客户端应用程序。我已经完成了聊天部分。现在我想同步 iphone 联系人和 xmpp 服务器联系人。为此,我想检查此联系人在 xmpp 服务器中是否可用。请帮助我做到这一点。
提前致谢。
要与 xmpp 服务器同步联系人,请使用 XEP extension-0055,它是一个 jabber 搜索插件。参考这个链接。
http://xmpp.org/extensions/xep-0055.html
尝试使用 PHP 正则表达式来匹配可能是函数的单词,而不是双引号。同时忽略可能是函数的双引号中的任何内容。下面已经匹配“你好(世界)”。并将 'hello(world)' 放在一个数组中,然后将 'hello' 放在另一个数组中。但是,我想要一个不添加它的条件,如上所述。
preg_match_all('#(\w*)\s*\(.*?\)