先日見つけた、PHPのマニュアルの不思議な説明
http://jp.php.net/manual/ja/function.mb-strrpos.php
int mb_strrpos ( string haystack, string needle [, int offset [, string encoding]] )
>バージョン5.2.0:オプションのパラメータ offset が追加されました。 >注意: PHP 5.2.0 以降、下位互換性のために >encoding を 3 番目のパラメータとして指定することができますが、 >これは推奨されません。PHP の将来のバージョンでは廃止される予定です。 ( ゜Д゜)<ポカーン
意訳: 今までは mb_strrpos ( string haystack, string needle , string encoding ) で動いていたんだけど、offsetって新しいパラメーターを、 今まで、encoding を指定してた場所に増やしたんだ mb_strrpos ( string haystack, string needle , int offset , string encoding )
でも、安心しな!今まで通り、 mb_strrpos ( string haystack, string needle , string encoding ) でも動くぜ! そのうち、動かなくなるけどな! |