My current code cannot find the/n character
How can I find out, eh?
Throw up the Code
$xml = simplexml_load_file("ZH-CNstrings.xml");// echo $xml->getName() . "
";$cou = 1;foreach($xml->children() as $child){ echo $child->getName(); if($child->getName() == "string-array"){ foreach ($child as $key2 => $value2) { echo "
"; } }else{ if (strstr($child,"color") or strstr($child,"%1") or strstr($child,"%s") or strstr($child,"\n") ) { echo "有 特殊字符 "; $cou++; } echo "
";}}
Reply content:
My current code cannot find the/n character
How can I find out, eh?
Throw up the Code
$xml = simplexml_load_file("ZH-CNstrings.xml");// echo $xml->getName() . "
";$cou = 1;foreach($xml->children() as $child){ echo $child->getName(); if($child->getName() == "string-array"){ foreach ($child as $key2 => $value2) { echo "
"; } }else{ if (strstr($child,"color") or strstr($child,"%1") or strstr($child,"%s") or strstr($child,"\n") ) { echo "有 特殊字符 "; $cou++; } echo "
";}}
Give it a try\n