<? Php
$ Temp = $ LabelArray ['content'];
$ Temp = preg_replace ("% <[^>] +> %", ',', $ temp); // prevent matching of letters on the website
$ Temp = make_semiangle ($ temp); // halfwidth Conversion
If (preg_match_all ("% [[: punct:] ([^ [: punct:] {5, 30}) [[: punct:] % u", $ temp, $ arr )){
$ I = rand (0, count ($ arr [0])-1 );
$ LabelArray ['title'] = $ arr [1] [$ I];
}
// Halfwidth Rotation
Function make_semiangle ($ str)
{
$ Arr = array ('0' => '0', '1' => '1', '2' => '2 ', '3' => '3', '4' => '4 ',
'5' => '5', '6' => '6', '7' => '7', '8' => '8 ', '9' => '9 ',
'A' => 'A', 'B' => 'B', 'C' => 'C', 'D' => 'D ', 'E' => 'E ',
'F' => 'F', 'G' => 'G', 'H' => 'h', 'I' => 'I ', 'J' => 'J ',
'K' => 'k', 'L' => 'l', 'M' => 'M', 'n' => 'n ', 'o' => 'O ',
'P' => 'P', 'q' => 'Q', 'R' => 'R', 's' =>'s ', 'T' => 'T ',
'U' => 'U', 'V' => 'V', 'w' => 'w', 'x' => 'x ', 'y' => 'y ',
'Z' => 'Z', 'A' => 'A', 'B' => 'B', 'C' => 'C ', 'D' => 'D ',
'E' => 'E', 'F' => 'F', 'G' => 'G', 'H' => 'h ', 'I' => 'I ',
'J' => 'J', 'K' => 'k', 'L' => 'l', 'M' => 'M ', 'N' => 'n ',
'O' => 'O', 'p' => 'P', 'q' => 'Q', 'R' => 'R ', 'S '=>'s ',
'T' => 'T', 'U' => 'U', 'V' => 'V', 'w' => 'w ', 'X' => 'x ',
'Y' => 'y', 'z' => 'Z ',
'(' => '(', ')' => ')', '[' => '[', ']' => ']', '[' => '[',
']' => ']', '<' => '[', '<' => ']', '=> '[', '"' => ']',
''' => '[', ''' => ']', '{' => '{', '}' => '}', '=>' <',
'"' => ',
'%' => '%', '+' => '+', '-' => '-', '-' => '-','~ '=> '-',
':' => ':','. '=>'. ',', '=>', '=>'. ',', '=> '.',
';' => ',','? '=> '? ','! '=> '! ','... '=>'-', ''' =>' | ',
'"' => '"', ''' => ''', ''' => ''', '|' => '| ', 'Region' => '"',
''=>'', '$' => '$', '@' => '@', '#' => '#', '^' => '^', '&' => '&', '*' => '*',
'"' => '"');
Return strtr ($ str, $ arr );
}
Echo serialize ($ LabelArray );
?>