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

⌈⌋ ⎇ branch:  upgrade.php


Artifact [76100424cd]

Artifact 76100424cd95713348c7675905618f0dec4d6330:

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

--TEST--
strpbrk
--FILE--
<?php

?>
$text = 'This is a Simple text.';

echo strpbrk($text, 'mi');
<?php
$text = 'This is a Simple text.';
echo strpbrk($text, 'mi')."\n\n";

echo 'echo strpbrk($text, "S");'."\n";
echo strpbrk($text, "S")."\n\n";
?>
--EXPECT--
$text = 'This is a Simple text.';

echo strpbrk($text, 'mi');
is is a Simple text.

echo strpbrk($text, "S");
Simple text.