PHP plugin used in data collection, please help me!!!!!!!!
In the data collection used to the lower part of the code, but do not understand the meaning of it, I hope to help you solve it!
Explain the meaning of each sentence, and $labelarray[] usage.
$LabelArray [' content '] = $LabelArray [' title ']. $LabelArray [' content '];
$LabelArray [' content '] = str_replace (' mouse ', ' ▲▲▲ dead Mouse ▲▲▲ ', $LabelArray [' content ']);
$LabelArray [' title '] = ' "to prefix the title tag" '. $LabelArray [' title '];
$LabelArray [' Time '] =date (' y-m-d h:i:s ');
$authorarray = Array (' Loco ', ' Wandering souls ', ' flying over Infinity ', ' Vus520 ', ' Xiao Wen ', ' mcdull ', ' netdream ', ' Tian Yi ', ' 6sky ', ' Sengl ');
$rndnum = rand (0,9);
$LabelArray [' author '] = ' re-refresh, followed by random '. $authorarray [$rndnum];
------Solution--------------------
PHP Code
$LabelArray [' content '] = $LabelArray [' title ']. $LabelArray [' content '];//Give $ The ' content ' element in the Labelarray array is assigned a value $labelarray[' content ' = str_replace (' mouse ', ' ▲▲▲ dead Mouse ▲▲▲ ', $LabelArray [' content ']);//Will $labelarray ' contents ' in the array The ' mouse ' in the value of the element is replaced with ' ▲▲▲ dead mouse ▲▲▲ ' $LabelArray [' title '] = ' "Add a prefix to the title tag" '. $LabelArray [' title ']; Prefix the ' caption ' element in the $labelarray array and assign it the $labelarray[' time ' =date (' y-m-d h:i:s '); Get current time $authorarray = Array (' Loco ', ' ghost ', ' flying over Infinity ', ' Vus520 ', ' Xiao Wen ', ' mcdull ', ' netdream ', ' Tian Yi ', ' 6sky ', ' Sengl '); Create a new array $rndnum = rand (0,9); 0-9 randomly out an integer $labelarray[' author '] = ' re-refresh, followed by random '. $authorarray [$rndnum];//assigns
------solution to ' author '--------------------
This paragraph only says $labelarray[' Html ' If there is content
add it to the previous part of the
------solution--------------------
Array subscript can be named by itself
Of course you can, but it's better to have something to do with your content. This allows you to easily maintain your own maintenance with others
------Solution--------------------
Receive data that is: ". $LabelArray [' Html ']; It's not written here.
------Solution--------------------
Well, you should see PHP's basic syntax, and then use the PHP manual to check out the unfamiliar functions you're encountering
http://www.php.net/ manual/en/