Blogger Information
Blog 15
fans 0
comment 0
visits 6251
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
字符串函数
啊℃。㏄
Original
408 people have browsed it

字符串函数

  1. <?php
  2. // stristr():忽略大小写版本
  3. $email = 'MYEMAIL@qq.com';
  4. echo stristr($email,'m').'<hr>';
  5. echo stristr($email,'a',true).'<hr>';
  6. // strrev():反转字符串
  7. echo strrev("hello world").'<hr>';
  8. // strtolower():转为小写
  9. $name = 'USERNAME';
  10. echo strtolower($name).'<hr>';
  11. // strtoupper():转为大写
  12. $name = 'abcdefc';
  13. echo strtoupper($name).'<hr>';
  14. // str_shuffle():随机打乱字符串
  15. $user = 'abcdefss';
  16. $num = str_shuffle($user);
  17. echo $num;

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post