phpʵÏÖ×¢Ê͵Äɾ³ý¡¾Ö§³Ö//£¬/*£¬/**¡¿
<?php
$fileName="function.js";
$file=fopen($fileName,"r");
$writeStr="";
$flag=false;//ÅжÏÊÇ·ñÓÐ/***/±ê×¼
while($strLine=fgets($file))
{
if(stripos($strLine,"/*")===false || stripos($strLine,"/**")===false)
{
$flag=false;
}
else
{
$flag=true;
}
$writeStr.=$flag."\n";
if($flag===true)
{
if(stripos($strLine,"*/"))
{
$flag=false;
}
continue;
}
$writeStr.=filterStr($strLine)."\n";
}
fclose($file);
$file=fopen($fileName,"w");
fwrite($file,$writeStr);
fclose($file);
function filterStr($str)
{
$position=strpos($str,"//");
if($position===false)
{
return $str;
}
else
{
return substr($str,0,$position);
}
}
?>
Ïà¹ØÎĵµ£º
µ¥ÒýºÅ'ºÍË«ÒýºÅ"µÄÇø±ð£º
Ê×ÏÈÊǵ¥ÒýºÅÒª±ÈË«ÒýºÅÖ´ÐÐЧÂÊÒª¸ß£¬ÒòΪ˫ÒýºÅ»á¶ÔÄÚÈݽøÐÐÔ¤´¦Àí¡£
ÀýÈ磺'$value' Êä³ö×Ö·û $value ; "$value"Êä³ö±äÁ¿$valueµÄÖµ¡£
charºÍvarcharµÄÇø±ð£º
charÊǶ¨³¤¶øvarcharÊDZ䳤£¬charµÄÖ÷ÒªÌصãÊÇ´æ´¢·½Ê½Ô¤·ÖÅ䣬varcharµ±ËüµÄÊý¾Ý³¤¶È·¢Éú±ä»¯Ê±»áÓ ......
PHPer
Ϊʲô±»ÈÏΪÊDzݸù£¿
—— Ò»¸öÖµµÃPHPer˼¿¼µÄÎÊÌâ
¿ªÆª×¢ÊÍ£ºÒÔÏÂÎÄ×Ö²¢Ã»Óзdz£¶àµÄ¼¼Êõ´Ê»ã£¬ËùÒÔÖ»Òª¶Ô
PHP
¸ÐÐËȤµÄÈ˶¼¿ÉÒÔ¿´¿´¡£
PHPe ......
phpÅäÖÃÌ«¸´ÔÓÁË,×òÌìÍíÉÏÅäÖÃÁË°ëÌ컹ûÓгɹ¦!²»µÃ²»Ñ°Çó¸ü¼òµ¥µÄ½â¾ö·½·¨:WampServer 5 ¼¯³É»·¾³
Wamp5ÊÇApache+PHP+Mysql ÔÚWindowsϵļ¯³É»·¾³£¬ÓµÓмòµ¥µÄͼÐκÍ
²Ëµ¥°²×°¡£¸Ã°æ±¾¼¯³ÉÁËPHP5.2.5 Mysql5 Apache2 phpMyAdmin 2.11.2.1
SQLiteManager 1.2.0 ÂúÁ˴󲿷ÖPHPerµÄÐèÇó.
´ÓÓï·¨ÉÏ¿´£¬PHPÓïÑÔ½üËÆÓÚCÓï ......
{Ò»}PHPÖÐthis,self,parentµÄÇø±ðÖ®Ò»thisƪ
ÃæÏò¶ÔÏó±à³Ì(OOP,Object Oriented Programming)ÏÖÒѾ³ÉΪ±à³ÌÈËÔ±µÄÒ»Ïî»ù±¾¼¼ÄÜ¡£ÀûÓÃOOPµÄ˼Ïë½øÐÐPHPµÄ¸ß¼¶±à³Ì£¬¶ÔÓÚÌá¸ßPHP±à³ÌÄÜÁ¦ºÍ¹æ»®web¿ª·¢¹¹¼Ü¶¼ÊǺÜÓÐÒâÒåµÄ¡£
PHP5¾¹ýÖØдºó£¬¶ÔOOPµÄÖ§³Ö¶îÓÐÁ˺ܴóµÄ·ÉÔ¾£¬³ÉΪÁ˾߱¸ ......
³£ÓÃPHPÔËËãÀàÐͽéÉÜÓëÓ¦ÓÃ
1¡¢ËãÊõÔËËã
Àý£º
5 * 6 - 12
2*(28+1)
×¢£ºËãÊõÔËËã×ñÑÊýѧÔËËã¹æÔò
´Ó×óµ½ÓÒ£¬ÏÈËã³Ë³ýºóËã¼Ó¼õ£¬Óöµ½À¨ºÅÏÈËãÀ¨ºÅÄÚ
2¡¢¸³ÖµÔËËã
Àý£º
$a=1;
$a+=2;
$a*=3;
......