123sw 发表于 2017-3-30 11:13:24

php中的字符串连接

  // 定义一个新变量
  $test = "hello";
  // . 字符串连接符
  echo $test.".world" // hello.world
    
echo "$test.world" //"" 中的变量将被解析成相应的值

  //hello.world
echo '$test.world' // 单引号' '原样输出 $test.world
页: [1]
查看完整版本: php中的字符串连接