我有n个链接,每个链接都有自己的关键字。我想一次在php中显示两个链接。有什么建议吗?
这是输入示例:
$text[1] = "<a href=https://www.website.ext/post-1/>words 1</a>";
$text[2] = "<a href=https://www.website.ext/post-2/>words 2</a>";
$text[3] = "<a href=https://www.website.ext/post-3/>words 3</a>";
$text[4] = "<a href=https://www.website.ext/post-4/>words 4</a>";
$text[5] = "<a href=https://www.website.ext/post-5/>words 5</a>"
....
输出示例:
words 1
words 3
or
words 5
words 2
or
words 4
words 1
翻翻过去那场雪