-3

例子:

if: $text="youtube.com/video"

我想在该文本的末尾添加类似“示例”的内容。

进行中:

youtube.com/videoexample
4

2 回答 2

2

有什么问题

$text .= "example";
于 2013-04-01T15:42:14.587 回答
1

可能您正在寻找类似 ih php 的内容:

<?php
if( $text == "youtube.com/video" )
{
    $text = $text . 'example';
}
?>

.是连接其操作数字符串的连接运算符。

于 2013-04-01T17:14:53.110 回答