开发者

How to replace a random number generation with a link?

开发者 https://www.devze.com 2023-01-15 23:35 出处:网络
I\'m trying to replace video{79345394} (random number inside the brackets) with 开发者_如何学Goa link.So far I have...

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

精彩评论

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