mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
16 lines
341 B
Plaintext
16 lines
341 B
Plaintext
|
--TEST--
|
||
|
strpos() matching numbers
|
||
|
--FILE--
|
||
|
<?php
|
||
|
// Integer is handles as an octal representation, so nothing to match
|
||
|
var_dump(strpos("foo 11", 11));
|
||
|
// int(111) is string("o") in octal. Match expected
|
||
|
var_dump(strpos("foo bar", 111));
|
||
|
// string("11") is contained
|
||
|
var_dump(strpos("foo 11", "11"));
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
bool(false)
|
||
|
int(1)
|
||
|
int(4)
|