Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/pcre/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/pcre/tests/preg_replace_callback_array.phpt |
--TEST-- preg_replace_callback_array() basic functions --FILE-- <?php class Rep { public function __invoke() { return "d"; } } class Foo { public static function rep($rep) { return "ok"; } } function b() { return "b"; } var_dump(preg_replace_callback_array( array( "/a/" => 'b', "/b/" => function () { return "c"; }, "/c/" => new Rep, '/d/' => array("Foo", "rep")), 'a')); var_dump(preg_replace_callback_array( array( "/a/" => 'b', "/c/" => new Rep, "/b/" => function () { return "ok"; }, '/d/' => array("Foo", "rep")), 'a')); var_dump(preg_replace_callback_array( array( '/d/' => array("Foo", "rep"), "/c/" => new Rep, "/a/" => 'b', "/b/" => create_function('$a', 'return "ok";')), 'a', -1, $count)); var_dump($count); ?> --EXPECTF-- string(2) "ok" string(2) "ok" string(2) "ok" int(2)
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare