Blogger Information
Blog 43
fans 0
comment 3
visits 26804
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php 一些字符串函数
Time
Original
384 people have browsed it

一、md5加密

  1. echo md5('abc');

二、sha1加密

  1. echo sha1('abc');

三、重复一个字符串

  1. //重复10次
  2. echo str_repeat("-=", 10);

四、随机一个字符串

  1. echo str_shuffle('abbddweee');

五、反转字符串

  1. //打印后是edcba
  2. echo strrev('abcde');
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