Palindrome: Positive sequence and reversed exact same
$string="ABC126321CBA";$stra=Array();$STRB=Array();$res=checkhuiwen ($string); functioncheckhuiwen($string){//input string to convert to array for($i=0;$i
<>
$string); $i+ +) { $stra[ $i]= $string[ $i];
} //Reverse output array array_reverse$strb=array_reverse ( $stra); //Determine if two arrays are equal, and equal to Palindrome for
( $i= 0; $i
<> $stra);
$i+ +) { if( $stra[ $i]!= $strb[ $i]) { return
1; break; }} return2; } if( $res= = 2) { echo"YES"; } Else{ echo"no!"; }
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the PHP input string is not a palindrome, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.