- var_dump: documentation ( source)
- stripos: documentation ( source)
<?php
class Foo {
public function __toString() {
return "foo";
}
}
function stripos2(string $haystack, string $needle) {
return stripos($haystack, $needle);
}
var_dump(stripos2("foobar", new Foo()));