Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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);
  }
 }
?>


Ïà¹ØÎĵµ£º

PHPһЩÓÐÒâ˼µÄСÇø±ð

µ¥ÒýºÅ'ºÍË«ÒýºÅ"µÄÇø±ð£º

Ê×ÏÈÊǵ¥ÒýºÅÒª±ÈË«ÒýºÅÖ´ÐÐЧÂÊÒª¸ß£¬ÒòΪ˫ÒýºÅ»á¶ÔÄÚÈݽøÐÐÔ¤´¦Àí¡£
ÀýÈ磺'$value' Êä³ö×Ö·û $value ; "$value"Êä³ö±äÁ¿$valueµÄÖµ¡£
charºÍvarcharµÄÇø±ð£º

charÊǶ¨³¤¶øvarcharÊDZ䳤£¬charµÄÖ÷ÒªÌصãÊÇ´æ´¢·½Ê½Ô¤·ÖÅ䣬varcharµ±ËüµÄÊý¾Ý³¤¶È·¢Éú±ä»¯Ê±»áÓ ......

phpÓëÊý¾Ý¿â

PHPer
Ϊʲô±»ÈÏΪÊDzݸù£¿
                        —— Ò»¸öÖµµÃPHPer˼¿¼µÄÎÊÌâ
¿ªÆª×¢ÊÍ£ºÒÔÏÂÎÄ×Ö²¢Ã»Óзdz£¶àµÄ¼¼Êõ´Ê»ã£¬ËùÒÔÖ»Òª¶Ô
PHP
¸ÐÐËȤµÄÈ˶¼¿ÉÒÔ¿´¿´¡£
PHPe ......

phpѧϰ±Ê¼Ç£¨2£©

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µÄÇø±ð

{Ò»}PHPÖÐthis,self,parentµÄÇø±ðÖ®Ò»thisƪ
       ÃæÏò¶ÔÏó±à³Ì(OOP,Object Oriented Programming)ÏÖÒѾ­³ÉΪ±à³ÌÈËÔ±µÄÒ»Ïî»ù±¾¼¼ÄÜ¡£ÀûÓÃOOPµÄ˼Ïë½øÐÐPHPµÄ¸ß¼¶±à³Ì£¬¶ÔÓÚÌá¸ßPHP±à³ÌÄÜÁ¦ºÍ¹æ»®web¿ª·¢¹¹¼Ü¶¼ÊǺÜÓÐÒâÒåµÄ¡£
PHP5¾­¹ýÖØдºó£¬¶ÔOOPµÄÖ§³Ö¶îÓÐÁ˺ܴóµÄ·ÉÔ¾£¬³ÉΪÁ˾߱¸ ......

phpѧϰ±Ê¼Ç£¨4£©:³£ÓÃPHPÔËËãÀàÐͽéÉÜÓëÓ¦Óãº

³£ÓÃPHPÔËËãÀàÐͽéÉÜÓëÓ¦ÓÃ
1¡¢ËãÊõÔËËã
Àý£º
    5 * 6 - 12
    2*(28+1)
    
×¢£ºËãÊõÔËËã×ñÑ­ÊýѧÔËËã¹æÔò 
´Ó×óµ½ÓÒ£¬ÏÈËã³Ë³ýºóËã¼Ó¼õ£¬Óöµ½À¨ºÅÏÈËãÀ¨ºÅÄÚ
2¡¢¸³ÖµÔËËã
Àý£º
$a=1;
$a+=2;
$a*=3;
   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ