////////................//////// <? <?php php ?> : <? $string=" !"; $string=ereg_replace(" +"," ",$string); echo $string; ?> - : <? $string=" . "; $string=trim($string); echo $string; ?> - : <? $string=" ."; $string=ltrim($string); echo $string; ?> - : <? $string=" . "; $string=rtrim($string); echo $string; ?> : <? $string="<b> </b>"; $string=strip_tags($string); echo $string; ?> , <b> <i>: <? $string="<h1> </h1> <b><i></i></b>"; $string=strip_tags($string,"<b><i>"); echo $string; ?> $array, : <? $file=file("my_file.txt"); print_r($file); ?> : <? $file=file("my_file.txt"); $count=count($file); echo $count; ?> : <? $open=fopen("my_file.txt","a"); fwrite($open," \r\n"); fclose($open); ?> , , : <? $open=fopen("my_file.txt","w+"); fwrite($open,"\r\n"); fclose($open); ?> : <? $line="1"; # , $file=file("my_file.txt"); $open=fopen("my_file.txt","w"); for($i=0;$i<count($file);$i++) { if(($i+1)!=$line){fwrite($open,$file[$i]);} } fclose($open); ?> : <? $line="1"; # , $replace=" "; # $file=file("my_file.txt"); $open=fopen("my_file.txt","w"); for($i=0;$i<count($file);$i++) { if(($i+1)!=$line){fwrite($open,$file[$i]);} else{fwrite($open,$replace."\r\n");} } fclose($open); ?> %text%, , , .. %text%, %text%: <? $string=" %text% ."; $string=str_replace("%text%","",$string); echo $string; ?> %text%, , , .. %text%, %text%, %text%, %text% .. <? $string=" %text% ."; $string=eregi_replace("%text%","",$string); echo $string; ?> , , , .. , ..: <? $string=" , ? "; if(eregi("",$string)) { # , # } else { # , # } ?> , , , .. : <
далее
перейти
в начало
В библиотеку

на главную



..
(c) xika.ru