1.用PHP打印出前一天的时间,打印格式是2007年5月10日22:21:212.PHP代码如下:$a="hello";$b=&$a;unset($b);$b="world";echo$a;其结果是?3.PHP代码如下:$str="cd";$$str="landog";$$str.="ok";ech...
分类:
Web程序 时间:
2014-06-28 18:50:17
阅读次数:
182
Select单进程非阻塞TCP echo服务器1. select 描述 #include #include int select( int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset, const struct...
分类:
其他好文 时间:
2014-06-28 15:52:47
阅读次数:
135
php heredoc 与 nowdocheredoc 结构heredoc 句法结构:testblogFDIPZONE;echo $content;?>heredoc 结构不能用来初始化类的属性。自 PHP 5.3 起,此限制仅对 heredoc 包括变量时有效。下例将会出错。a;?>heredoc...
分类:
Web程序 时间:
2014-06-28 13:07:25
阅读次数:
245
To free pagecache: echo 1 > /proc/sys/vm/drop_caches;to free dentries and inodes: echo 2 > /proc/sys/vm/drop_caches;to free pagecache, dentries and in...
分类:
系统相关 时间:
2014-06-28 10:41:39
阅读次数:
222
# # ThinkPHP 3.1.2 输出和模型使用 # 讲师:赵桐正 微博:http://weibo.com/zhaotongzheng 本节课大纲: 一、ThinkPHP 3 的输出 (重点) a、通过 echo 等(PHP原生的输出方式)在页面中输出。 ** V -- 负责输出(页面显示),....
分类:
Web程序 时间:
2014-06-25 21:48:35
阅读次数:
295
PrintEcho print 输出转型$sum=0;$total=(float)$sumIsset() unset()判断一个变量是否存在$echo intval$sum 浮点型Define(“total”,100); 常量一旦定义就不可更改判断句14){Echo’内容’;}?>14){Echo’...
分类:
Web程序 时间:
2014-06-25 21:47:59
阅读次数:
281
在zed的PS端运行spark: (1)设置uboot为sd卡启动rootfs: "sdboot=if mmcinfo; then " \ "run uenvboot; " \ "echo Copying Linux from SD to RAM... && " \ ...
分类:
其他好文 时间:
2014-06-24 14:27:44
阅读次数:
497
$m = memory_get_usage();echo $m;require_once('include/entryPoint.php');// for ($i=0; $i < 500000; $i++){// $rliBean[] = BeanFactory::newBean('ibm_Reve...
分类:
Web程序 时间:
2014-06-22 23:13:20
阅读次数:
294
是吗hello爱发起#include<stdio.h>
intmain()
{
printf("helloworld!");
}num=521
(1)sed加正则表达式
[[-n"`echo$num|sed‘s/[0-9]//g‘`"]]&&echo"Itisnumber"
(2)变量的子串替换+正则表达式
[[-z"`echo"${num//[0-9]/}"`"]]&&echo"Itisnumber"
(3)变量..
分类:
其他好文 时间:
2014-06-22 11:55:10
阅读次数:
191
没怎么用过这个新特性,其实也不算新啦,试试吧,现在静态类的继承很方便了
<?php
class A {
protected static $def = '123456';
public static function test() {
echo get_class(new static);
}
public static function test2() {
echo sta...
分类:
Web程序 时间:
2014-06-22 07:14:10
阅读次数:
298