博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
php_note.txt
阅读量:7231 次
发布时间:2019-06-29

本文共 773 字,大约阅读时间需要 2 分钟。

drop procedure if exists pro_reg;
delimiter //
create procedure pro_reg(in user varchar(20),in password varchar(20) ); 
begin 
insert into tb_adm (userword,password)values(user,password);
end
//
1) trim('   \"string\"', '\"sg');   // 最终输出:\"strin
2) trim('   \"string\"   ', '\"sg');   // 最终输出:\"string\"
3)trim('\"string\"', '\"sg');    // 最终输出:trin
<?php 
$str = " 使用函数trim去掉字符串两端空白字符 "; 
$str1 = trim($str); 
echo "处理前有".strlen($str)."个字符"; echo "<br/>"; 
//www.phpjc.cn echo "<br/>"; 
echo "使用trim函数处理后有".strlen($str1)."个字符"; 
?> 
<?php 
$str = "##使用函数trim去掉字符串两端特定字符####"; 
$str1 = trim($str,"#"); 
//为函数trim传入第二个参数,
trim将删除字符串$str两端的#字符 echo $str."<br>"; 
echo $str1; 
?> 
http://127.0.0.1/myworks/zzforum/post.php?type=%27post%27#revert

转载于:https://www.cnblogs.com/feng12345/p/5467947.html

你可能感兴趣的文章
函数的参数
查看>>
Java编程规范
查看>>
【洛谷 P1070】道路游戏 (DP)
查看>>
走迷宫(回溯、深搜)判断能否到终点
查看>>
Zookeeper权限管理与Quota管理
查看>>
CORS 详解
查看>>
【原】iOS学习之苹果原生代码实现Autolayout和VFL语言
查看>>
ASP.NET MVC中使用FluentValidation验证实体
查看>>
usb mass storage device
查看>>
CentOs7
查看>>
python3封装Api接口
查看>>
jar包双击执行引用外部包问题
查看>>
OI复习计划
查看>>
about
查看>>
O-Bomb(数位dp)
查看>>
hdu5032 点和查询分别按极角排序 离线做+树状数组
查看>>
hdu1428 递归形式dp(记忆化搜素):A能到B的条件是A到目的地最短路大于B到目的地最短路...
查看>>
实例详解Django的 select_related 和 prefetch_related 函数对 QuerySet 查询的优化(三)...
查看>>
关于VC++6.0 MFC项目运行所需的动态链接库
查看>>
由system.currentTimeMillis() 获得当前的时间
查看>>