摘要: 首字母变大写:ucwords()1 <?php2 $foo = 'hello world!';3 $foo = ucwords($foo); // Hello World!4 5 6 $bar = 'HELLO WORLD!';7 $bar = ucwords($bar); // HELLO WORLD!8 $bar = ucwords(strtolower($bar)); // Hello World!9 ?> 第一个词首字母变大写:ucfirst()1 <?php2 $foo = 'hello world!';3 $foo 阅读全文
posted @ 2012-05-12 10:09 [九狐科技]keheng 阅读(3748) 评论(0) 推荐(0) 编辑
摘要: PHP 代码 加密此加密方法支持任意PHP版代码如下: 1 <?php 2 function RandAbc($length=""){//返回随机字符串 3 4 5 $str="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; 6 return str_shuffle($str); 7 8 } 9 10 11 $filename='index.php';12 13 14 $T_k1=RandAbc();//随机密匙115 16 17 $T_k2=RandAbc();//随机 阅读全文
posted @ 2012-05-12 08:32 [九狐科技]keheng 阅读(11440) 评论(6) 推荐(0) 编辑