这是一个简单的问题(我认为), 这也许就是为什么我找不到已经回答(或简单回答)的问题。
我想显示有关图像悬停的其他信息。我只能使用以下方式显示图像的标题:alt =” <?php echo($ post_detail [‘post_title’]);?>
我可以将其更改为仅显示年份:alt =” <?php echo($ post_detail [‘year’]);?>
如何同时显示两者?它们可以在同一条线上, 也可以在另一条线上。没关系。
谢谢你的帮助, 请问我的基本技能水平。
#1
你可以使用以下方法轻松连接字符串:
alt="<?php echo $post_detail['post_title'] . ' ' . $post_detail['year'] ?>"
或者只是回显两个变量:
alt="<?php echo $post_detail['post_title'] ?> <?php echo $post_detail['year'] ?>"
希望这可以帮助!
来源:
https://www.srcmini02.com/63709.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37581.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57