PHPÅúÁ¿É¾³ý¼¼ÇÉ
Ê×ÏÈÒªÁ˽âsqlÓï¾ä
$SQL="delete from `PHP100` where id in (1,2,4)";
±íµ¥´ó¸ÅÊÇ£º
<form action="" method="post">
<input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="1"/>
<input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="2"/>
<input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="3"/>
<input name="ID_Dele[]" type="checkbox" id="ID_Dele[]" value="4"/>
<input type="submit"/>
</form>
phpº¯ÊýÖ÷ÒªÓõ½implode
$ID_Dele= implode(",",$_POST['ID_Dele']);
$SQL="delete from `user` where id in ($ID_Dele)";
××××××××××××××××××××××××××××××××
implode
½«Êý×é±ä³É×Ö·û´®¡£
Óï·¨:
string implode(string glue, array pieces);
·µ»ØÖµ:
×Ö·û´®
º¯ÊýÖÖÀà:
×ÊÁÏ´¦Àí
ÄÚÈÝ˵Ã÷
±¾º¯Êý½«Êý×éµÄÄÚÈÝ×éºÏ³ÉÒ»¸ö×Ö·û´®£¬²ÎÊý glue ÊÇ×ÖÖ®¼äµÄ·Ö¸ô·ûºÅ¡£
ʹÓ÷¶Àý
<?
$colon_separated
=
implode
(
":"
,
$array
);
echo
$colon_separated
;
?>
××××××××××××××××××××××××××××××××
ȫѡ
<script>function checkall(form, prefix, checkall) {
for(var i = 0; i < form.elements.length; i++) {
var e = form.elements[i];
if(e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) {
e.checked = form.elements[checkall].checked;
}
}
}</script>
<form>
<input type="checkbox"
Ïà¹ØÎĵµ£º
ת×Ô£ºhttp://www.phpq.net
×¼±¸£º
1¡¢Ò»Ì¨°²×°ºÃµÄ Windows 2003 ·þÎñÆ÷£¬²¢ÇÒÒѾ°²×°ÁË IIS 6¡£
2¡¢ÏÂÔØ windows °æµÄ PHP ¶þ½øÖÆÑ¹Ëõ°ü¡£
°²×°£º
½âѹËõ PHP ¶þ½øÖÆÑ¹Ëõ°üµ½ C:\php Ŀ¼Ï£¨ÕâÀï¼ÙÉè C: ÅÌÊÇϵͳÅÌ£¬¼´°²×°ÁËWindows ϵͳµÄÅÌ£¬Èç¹ûϵͳÅÌÊÇ D:
ÅÌ£¬Ôò½âѹËõµ½ D:\php Ŀ¼Ï£¬ÒÔ´ËÀàÍÆ£¬Ï ......
$file1 = 'F:/46.gif';
$file2 = 'F:/test.txt';
$file3 = 'F:/47.gif';
$size = filesize($file1);
echo 'Îļþ´óСΪ£º'.$size;
echo "\n<br>ת»¯Îª¶þ½øÖÆ ...";
$content = file_get_contents($file1);
$content = bstr2bin($content);
$fp = fopen($file2, 'w');
fwrite($fp, $content);
fclose($fp);
......
www.diybl.com¡¡Ê±¼ä£º2008-06-01¡¡×÷Õß:ØýÃû
½«Æä±£´æ³ÉÒ»¸öÎļþ£¬ÓÃʱµ÷ÓÃ
<?
//ΪÁ˱ÜÃâÖØ¸´°üº¬Îļþ¶øÔì³É´íÎ󣬼ÓÁËÅжϺ¯ÊýÊÇ·ñ´æÔÚµÄÌõ¼þ£º
if(!function_exists(pageft)){
//¶¨Ò庯Êýpageft(),Èý¸ö²ÎÊýµÄº¬ÒåΪ£º
//$totle£ºÐÅÏ¢×ÜÊý£»
//$displaypg£ºÃ¿Ò³ÏÔʾÐÅÏ¢Êý£¬ÕâÀïÉèÖÃΪĬÈÏÊÇ20£»
//$url£º·Ö ......
PHP´ÓPHP5¿ªÊ¼£¬³¹µ×ÖØÐ±àдµÄºÍÐÂÔöÁ˶ÔXMLµÄÀ©Õ¹£¬Èç SAX ½âÎöÆ÷¡¢DOM¡¢SimpleXML¡¢XMLReader¡¢XMLWriter ºÍ XSLT ´¦Àí³ÌÐò¡£ËùÓÐÕâЩÀ©Õ¹¶¼ÒÔ libxml2 Ϊ»ù´¡¡£
=============================
1¡¢DOMDocument¶ÔÏó³£Ó÷½·¨£º
=============================
a£©createElement(elementName)
¸Ã· ......