跳转到主要内容
你行网

Main navigation

  • 首页
  • Drupal
  • 编程与开发
  • 数据库
  • 操作系统与应用
  • 服务器与运维
  • 社区
User account menu
  • 登录

面包屑

  1. 首页

php字符串运算符

由 hrs, 9 十月, 2024

 

php-030

实例代码:

<!doctype html>
<html>
    <head>
        <meta charset ="utf-8">
        <title>php字符串运算符</title>
        <style>
            table, td,th {
            border:1px  solid black;
        }
        th{
            background-color:#ADD8E6;
            
        }
        </style>
    </head>

    <body>
    <h1>php字符串运算符</h1>

<table>
    <tr>
        <th>运算符</th>
        <th>名称</th>
        <th>例子</th>
        <th>结果</th>


</tr>
    <tr>
        <td>.</td>
        <td>串接</td>
        <td>$txt1 = "Hello" $txt2 = $txt1 . " world!"</td>
        <td>现在 $txt2 包含 "Hello world!"</td>
    </tr>
    <tr>
        <td>.=</td>
        <td>串接赋值</td>
        <td>$txt1 = "Hello" $txt1 .= " world!"</td>
        <td>现在 $txt1 包含 "Hello world!"</td>
    </tr>
</table>

<h3>输出实例</h3>
Hello world!<br>Hello world    </body>
</html>
  • 登录或注册以发表评论
内容类型分类
编程与开发
文章归类
后端开发

文章标签

  • php

评论

文章标签

Excel
CSS
ubuntu
php
vim
五笔
VPN
Linux
command
HTML
drupal 8
drupal 7
centos
composer
Mysql
模块(module)
drush
Drupal
JavaSrcipt
apache
英语
drupal 9
nerdtree
荔壳风
network
果树种植
surround
drupal10
SEO
主题(theme)
更多

相关文章

  • 匿名函数(Anonymous Functions)详解
  • foreach 是 PHP 循环语句使用方法
  • implode() 函数的定义和用法
  • 为什么学习php 会一边学,一边忘
  • 在 PHP 中什么是try
  • PHP数据类型及其作用总结
  • php过滤器的作用和说明
  • php 会话使用方法
  • 什么是PHPSTORM_META
  • php 数据类型和使用范围大小,和默认值
RSS源

友情链接 网站地图 版权信息 联系我们 网址导航 社区

Copyright © 2019 - 2021 你行网 版权所有  粤ICP备19072650号