Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例子:
if: $text="youtube.com/video"
我想在该文本的末尾添加类似“示例”的内容。
进行中:
youtube.com/videoexample
有什么问题
$text .= "example";
可能您正在寻找类似 ih php 的内容:
<?php if( $text == "youtube.com/video" ) { $text = $text . 'example'; } ?>
.是连接其操作数字符串的连接运算符。
.