?? ???? ?? ?? ?? ??? PHP ??? ??? ?? ???
Jul 29, 2016 am 08:36 AM??? ??? ?? ??? ????
?? ??? ??? ??? ???? ???? ???????? ?? ???
???? ??? ???? n?? ????. ???? ???? "n"?? ??? ???. ?? ?? ???? ??? ?????. ???? ?? ??? ??? ??? ??? ???? ???. ?? ?? ??? ?? 2, 3, 4? ??????? ?? ??:
for($i=2;$i< ;=4;$i )$this->update($file,$i,$msg);???? ?? ??:
$data= $this->??($file);
for( $i=2;$i<=4;$i )$data[$i]=$msg; $file,$data); of
class text{
var $key=""; //??? ??
var $keylen; >function text() //??? ???
{
$this->keylen=strlen($this->lkeylen) //??? ?? ????
}
function read( $file) //??? ?? ??? ?????
{
if(file_exists($file)):
$data=@file($file)
$data[0]= substr($data[0],$this->keylen);
return $a;
endif;
}
function write($file,$data=array()) // ?? ??, ???? ?????
{
if($ fp=fopen($file,"w")):
flock($fp,3)
fwrite($fp ,$this->key);
foeach($data as $v )fwrite($fp,$v)
return true
}
function add( $file,$msg)
//?? ?? ??? ??(???? ??) ?? ??? ?????.
{
$a=$this->read($file); //??? ????? ??? ???? ????.
$a[]=$msg
return $this ->write($file,$a)
}
function insert ($file,$n,$msg) //$n?? ?? ??? ??
{
if($ a=$this->read($file)):
$a[$n] =$msg.$a[$n];
return true;
endif;
}
function updata($file,$n,$msg) //$n ??? ????
{
if($a=$this->read($file)):
$a[ $n]=$msg
return true
endif
}
function del($file,$n) //$n? ??? ??
{
return $this- >updata($file,$n,"")
}
}
??? ?? ???? ?? ?? ?? ???? ??? ???? ?? ???? ?? ?? ?? ???? ?? PHP ??? ??? ?? ???? ??????. PHP ????? ??? ?? ????? ??? ?? ????.

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

PHP ?? ??? ?? ???? ?? ? ????? ??? ?????. 1. ?? ??? ??? ??? ??? ? ? ??? ??? ??? ?? ?? ??? ???? ???????. 2. ?? ??? ???? ???? ? ?? ????? ?? ?? ?? ??? ?????. 3. $ _get ? $ _post? ?? Hyperglobal ??? ?? ???? ?? ??? ? ??? ??? ??????? ???????. 4. ?? ?? ?? ???? ?? ?? ?? ??? ?????? ?? ??? ??? ?? ??? ???????. ??? ??? ????? ??? ??? ?? ???? ????? ? ??? ? ? ????.

PHP ?? ???? ???? ????? ?? ? ??? ???? ?? ?? ? ??? ???? ?? ??? ?????? ??? ??? ? ? ???????. 1. ??? ?? CSRF? ???? ?? ??? ??? ???? ?????? ??? ???? FINFO_FILE? ?? ?? MIME ??? ?????. 2. ??? ??? ??? ???? ??? ?? ??? ?? ? WEB ????? ??? ???? ??????. 3. PHP ?? ??? ?? ? ?? ???? NGINX/APACHE? ??? ????? ?? ???? ?????. 4. GD ?????? ??? ? ?? ???? ??? ?? ??? ?? ????.

PHP ?? ???? ? ?? ???? ??? ????. 1. // ?? #? ???? ? ?? ??? ???? // ???? ?? ????. 2. ?? /.../ ?? ?? ?? ??? ????? ?? ? ?? ??? ?? ? ? ????. 3. ?? ?? ?? / if () {} /? ?? ?? ??? ????? ??? ?? ?? ?? ??? ???? ????? ???? ??? ?? ???? ???? ??? ? ??? ??????.

Ageneratorinphpisamemory- ???? Way-Erate-Overgedatasetsetsbaluesoneatimeatimeatimeatimallatonce.1.generatorsuseTheyieldKeywordTocroadtOpvaluesondemand, RetingMemoryUsage.2

PHP ??? ???? ??? ??? ??? ????? ????. ??? ????? ?? ???? ??? "?? ? ?"??? "?"? ???????. 1. ??? ? ??? ??? DocBlock (/*/)? ?? ?? ??? ???? ??? ? ?? ???? ??????. 2. JS ??? ???? ?? ???? ??? ?? ??? ??? ?????. 3. ??? ?? ?? ?? ??? ???? ????? ????? ???? ?? ????? ???? ? ??????. 4. Todo ? Fixme? ????? ???? ? ? ??? ??? ???? ?? ?? ? ??? ???????. ??? ???? ?? ??? ??? ?? ?? ?? ???? ???? ? ????.

tolearnpheffectical, startBysetTupaloCalserErverEnmentUsingToolslikexamppandacodeeditor -likevscode.1) installxamppforapache, mysql, andphp.2) useacodeeditorforsyntaxsupport.3)) 3) testimplephpfile.next, withpluclucincludechlucincluclucludechluclucled

toinstallphpquickly, usexampponwindowsorhomebrewonmacos.1. ??, downloadandinstallxAmpp, selectComponents, startApache ? placefilesinhtdocs.2

PHP??? ???? ??? ?? ?? ????? ???? ??? ?? ??? ??? ?? ? ??? ??? ???? ?????. ???? 0?? ???? ?? ??? ???? ? ?? ???? ?? ?? ? ? ????. MB_SUBSTR? ?? ??? ??? ???????. ? : $ str = "hello"; echo $ str [0]; ?? H; ??? MB_SUBSTR ($ str, 1,1)? ?? ??? ??? ??? ??????. ?? ???????? ???? ??? ???? ?? ???? ?? ?? ???? ?????? ??? ????? ?? ??? ?? ??? ???? ???? ?? ????.
