posted @ 2016-04-03 22:48 Y-HKL 阅读(262) 评论(0) 推荐(0) 编辑
摘要:
ltrim()、rtrim()、trim()、str_pad()、strtolower()、strtoupper()、ucfirst()、ucwords()、nl2br()、htmlentities()、htmllspeciachars()、stripslashes()、strip_tags()、number_format()、strrev()、md5()、md5_file()、strcmp();、strcasecmp();、strnatcmp(); 阅读全文
摘要:
效果: index.php form.class.php shape.class.php result.class.php Rect.class.php Triangle.class.php Circle.class.php 阅读全文
posted @ 2016-04-02 17:04 Y-HKL 阅读(570) 评论(0) 推荐(0) 编辑
摘要:
final、static、const、__call()、__toString()、__clone()、__autoload()、serialize(); 、unserialize();、 __sleep()、__wakeup() 阅读全文
posted @ 2016-03-31 20:38 Y-HKL 阅读(130) 评论(0) 推荐(0) 编辑
摘要:
类、对象、构造方法、析构方法、魔术方法__construct();__destruct();__set();__get();__isset();__unset();__clone();__call();__sleep();__weakup();__toString();__autoload();封装性、继承性 阅读全文
posted @ 2016-03-27 21:49 Y-HKL 阅读(133) 评论(0) 推荐(0) 编辑
摘要:
一.数组键/值操作有关的函数
array_values()
array_keys(array,value)
in_array(value,array,type)
array_key_exists(key,array)
array_flip(array)
array_reverse(array,preserve)
二.统计数组元素的个数和唯一性
count(array,mode)
sizeof(array,mode)
array_count_values()
array_unique
三.使用回调函数处理数组的函数
array_filter(array,function)
array_walk(array,function,userdata...)
array_map(function,array1,array2,array3...)
四.数组的排序函数
sort()
rsort()
usort()
asort()
arsort()
uasort()
ksort()
krsort()
uksort()
hatsort()
natcas 阅读全文
posted @ 2016-03-26 16:46 Y-HKL 阅读(251) 评论(0) 推荐(0) 编辑
摘要:
一.数组的概述
二.数组的分类
三.数组多种声明方式
四.数组的遍历
1.使用for循环遍历数组
2.使用foreach语句循环遍历数组
3.while() list() each()组合循环遍历数组
next(数组); 指针移动到下一个,并返回当前元素的值
prev(数组); 指针移动到上一个,并返回当前元素的值
rest(数组); 指针移动到头一个
end(数组); 指针移动到最后一个
current(数组); 获取当前元素的值
key(数组); 获取当前元素的键 阅读全文
posted @ 2016-03-25 13:47 Y-HKL 阅读(247) 评论(0) 推荐(0) 编辑
摘要:
函数、局部变量、全局变量、静态变量、变量函数、内部函数、递归函数、重用函数、 阅读全文
posted @ 2016-03-21 18:21 Y-HKL 阅读(172) 评论(0) 推荐(0) 编辑