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}
精彩评论