• php_note.txt


    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
  • 相关阅读:
    express框架总结
    http协议和file协议的区别
    苹果和安卓机的兼容问题
    nodejs搭建服务器
    VsCode编辑器
    编辑器统一 快捷键
    前后端分离 方案
    资源
    commonJs的运行时加载和es6的编译时加载
    mock 数据 解决方案
  • 原文地址:https://www.cnblogs.com/feng12345/p/5467947.html
Copyright © 2020-2023  润新知