我在 php 中为我的疯狂库提供了一个字符串形式的故事,并且想知道是否有一种有效的方法来添加工具提示?
$story1 = ("<b><u>$noun2</u></b> an uh <b><u>$noun1</u></b> were driving through a wooded empty section of <b><u>$location1</u></b>. Lightning flashed, thunder roared, the sky went dark in the <b><u>$adjective1</u></b> downpour.
<br />
<br /> 'We'd better <b><u>$verb1</u></b>,' said <b><u>$noun2</u></b>.
<br />
<br /> <b><u>$noun1</u></b> nodded his head in agreement. He stepped on the brake, and suddenly the car started to <b><u>$verb2</u></b> on the slick pavement. They plunged off the road and slid to a halt at the bottom of an incline.
这是我的代码示例。