--TEST-- Test mb_strrpos() function : usage variations - pass encoding as third argument (deprecated behaviour) --SKIPIF-- --FILE-- "utf-8", 'Single Quoted String' => 'utf-8', 'Heredoc' => $stringh); foreach ($inputs as $type => $input) { echo "\n-- $type --\n"; echo "-- With fourth encoding argument --\n"; var_dump(mb_strrpos($string_mb, $needle_mb, $input, 'utf-8')); echo "-- Without fourth encoding argument --\n"; var_dump(mb_strrpos($string_mb, $needle_mb, $input)); } echo "Done"; ?> --EXPECT-- *** Testing mb_strrpos() : usage variations *** -- Double Quoted String -- -- With fourth encoding argument -- int(20) -- Without fourth encoding argument -- int(20) -- Single Quoted String -- -- With fourth encoding argument -- int(20) -- Without fourth encoding argument -- int(20) -- Heredoc -- -- With fourth encoding argument -- int(20) -- Without fourth encoding argument -- int(20) Done