1--TEST-- 2strpos() matching numbers 3--FILE-- 4<?php 5// Integer is handles as an octal representation, so nothing to match 6var_dump(strpos("foo 11", 11)); 7// int(111) is string("o") in octal. Match expected 8var_dump(strpos("foo bar", 111)); 9// string("11") is contained 10var_dump(strpos("foo 11", "11")); 11?> 12--EXPECTF-- 13Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d 14bool(false) 15 16Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d 17int(1) 18int(4) 19