PHP userland backwards compatibility layer that emulates PHP 5.5+ core functions.

⌈⌋ ⎇ branch:  upgrade.php


Artifact [1860895a4f]

Artifact 1860895a4f32da3d6a21b6436d38c41dbf22903b:

  • File doc/tests1all/stripos.phpt — part of check-in [51e3884900] at 2010-06-22 17:03:27 on branch trunk — upgradephp-15 (user: mario size: 270)

--TEST--
stripos
--FILE--
<?php

$l = stripos("ABCDEFef", "e");
echo "stripos(\"ABCDEFef\", \"e\") == $l\n\n";

$r = strripos("ABCDefEF", "e");
echo "strripos(\"ABCDefEF\", \"e\") == $r\n\n";

?>
--EXPECT--
stripos("ABCDEFef", "e") == 4

strripos("ABCDefEF", "e") == 6