开发者

How to replace a random number generation with a link?

I'm trying to replace video{79345394} (random number inside the brackets) with 开发者_如何学Goa link. So far I have...

preg_replace('@video[{]([0-9])[}]@', $language[61].'<br /><a href="javascript:videoWith($1);">'.$language[62].'</a>', $chat_message);

It doesn't seem to be working, so help is very much appreciated!


Nevermind! I just needed to add a {10}, so...

[0-9]{10}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜