PHP中关于strstr函数查找 /n特殊字符?
PHPz
PHPz 2017-04-10 17:01:22
0
1
709

我现在的代码 找不到 /n 字符

请问如何找到嗯?


扔上来的代码

$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 "
"; } }
PHPz
PHPz

学习是最好的投资!

reply all (1)
小葫芦

试试\n

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!