PHP Palindrome Rearranging
function palindromeRearranging($inputString) {
$val = array_count_values(str_split($inputString));
$c = 0;
foreach($val as $v) {
if($v%2 != 0) {$c++;};
}
return $c <= 1;
}
This counts character frequency and checks whether the string has the right number of odd counts to form a palindrome.