zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    my eye
    html与HTML5的区别
    h5css样式
    h5css3弹性盒子
    简单js的介绍
    2020.8.16(周报6)
    2020.8.18
    2020.8.20
    2020.8.17
    2020.8.15
  • 原文地址:https://www.cnblogs.com/feng12345/p/5467947.html
Copyright © 2011-2022 走看看