Home >php教程 >php手册 >特殊问题

特殊问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 19:37:11863browse

同样的php代码,并且php的版本相同、系统都是Windows,但结果不一样 无 if(strstr('1|2|3',2)) $h='checked';// 一台电脑上这样 可以// 但另一台 上 必须写成这样 if(strstr('1|2|3','2')) $h='checked';////// 请问 这是为什么 ?

同样的php代码,并且php的版本相同、系统都是Windows,但结果不一样
if(strstr('1|2|3',2))  $h='checked';

// 一台电脑上这样 可以
// 但另一台 上 必须写成这样  

if(strstr('1|2|3','2'))  $h='checked';



//////     请问  这是为什么  ?
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn