php Êä³ö¶þ½øÖÆÊý¾ÝÁ÷? - PHP / »ù´¡±à³Ì
½«ÒªÊä³öµÄ¶þ½øÖÆÊý¾ÝдÈëÎļþÖУ¬·½±ã²é¿´¡£
дÈëÎļþ
PHP code:
$number = 123;
$handle = fopen ("data.dat", "w");
fwrite ($handle, pack ("L", $number));
fclose($handle);
¶ÁÈ¡Êý¾Ý
PHP code:
$handle = fopen ("data.dat", "rb");
$data = fread ($handle, 4);
$array = unpack ("L*", $data);
print_r($array);
Èç¹ûÎÒдÈëµÄÊÇ×Ö·û´®£¬$number="ÖйúÈË"
fwrite ($handle, pack ("L", $number));//pack ÖдæÈ¡·½Ê½¸ÄΪ C/c ¶¼ÎÞ·¨ÕýÈ·µÄ¶ÁÈ¡³öÀ´£¿
Èç¹ûÎÒÒªÊä³öµÄÊý¾ÝÁ÷ÊÇÒ»¸öÊý×éÔõô°ì£¿È磺array("par1"=>array("sex","age"),"par2"=>array("ss","ºÇºÇ"))
ÔõÑùÕýÈ·µÄÊä³öΪ¶þ½øÖÆÊý¾Ý
лл£¡
PHP code:
//var_export
$arr = array ('a', 'b', array ("c", "d", "e"));
echo var_export ($arr);
/* £º
array (
0 => 'a',
1 => 'b',
2 =>
array (
0 => 'c',
1 => 'd',
2 => 'e',
),
)
*/
PHP code
Code highlighting produced by
Ïà¹ØÎÊ´ð£º
Ôڲɼ¯Ò»¸öÒ³ÃæµÄʱºòͨ³£¶¼ÊÇʹÓÃfile_get_contents($url)
²»¹ý·µ»ØµÄ½á¹ûÓÐʱºò»á²»È«
Èç¹ûÔÚhtmlÖÐʹÓà document.ready,ÔÚÒ³Ãæ×¼±¸ºÃºó£¬Ê¹ÓÃajax¶ÁÈ¡±ðÒ»²¿·ÖµÄÊý¾Ý
ÔÙͨ¹ýÐÞ¸Ähtml±êÇ©µÄÄÚÈÝ£¬¾Í²¿·ÖµÄÊý¾Ý¾ ......
±±¾©2ÄêPHP¾ÑéÇó¼æÖ°
½Ó·Ö
·¹ý½Ó·Ö£¡.¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
jf~~~~~~~~~~~~~~Ö§³Ö
ßÀ¡£¡£ÎÒÃÇÐèÒª¼æÖ°£¬¿ÉÊÇÔõôÁªÏµÄãѽ£¿
¶¥¡£¡£¡£ »Ø¸´ÄÚÈÝ »Ø¸´ÄÚÈÝÌ«¶ÌÁË£¡
º¼ÖÝÄãÈ¥²»È¥°¡ ¡£¡£¡£¡£¡ ......
mssql_select_db("f1",mssql_connect("localhost","sa","sa"));
mssql_select_db("f2",mssql_connect("192.168.0.1","sa","sa") ......
ÓÖ³öÏÖÁË $bplot2->SetLegend("ÖÐÎÄÂÒÂë");//ÂÒ
$graph->title->Set("ÿÈÕ¶©µ¥Á¿ÔÂͳ¼Æͼ");//²»ÂÒ
ͬһҳÃæ
jpgraph jpgraph_bar.phpÖÐûÓÐSetFont(FF_SIMSUN,FS_BOLD);Õâ¸ö·½·¨Ñ½ ......
ÄúºÃ£¬ÓÐÄǼҹ«Ë¾ÐèÒª¼æÖ°PHP³ÌÐòÔ±¸úÍøÒ³div+cssÂ𣿱¾ÈËÒ»Äê¶àµÄ¹¤×÷¾Ñ飬Èç¹ûÓÐÐèÒªÇëÓëÎÒÁªÏµ£¬QQ£º147600323
End_rbody_65353772//-->
¸Ã»Ø¸´ÓÚ2010-05-12 09:32:05±»¹ÜÀíԱɾ³ý
¶ÔÎÒÓÐÓÃ[ ......