[PHP-doc 199] Re: type of base_convert

Moriyoshi Koizumi moriyoshi @ at.wakwak.com
2003年 4月 16日 (水) 23:19:29 JST


小泉です。

Tadashi Jokagi <ml @ elf.no-ip.org> wrote:

>       ぢょ〜@よくきたなです.
>       毎度くだらない事ですみません(苦笑

いえいえ、上鍵さんの指摘かなり助かってます。

> http://www.php.net/manual/ja/function.base-convert.php
> 
>     のプロトタイプに typo があります.
> 
> ng)strin base_convert ( string number, int frombase, int tobase)
> ok)string base_convert ( string number, int frombase, int tobase)
> 
>     かと. といっても正確には返り値は mixed と表記すべきでは? という気も
>     しますが自信は無いです(苦笑

<?php var_dump(base_convert(12345, 10, 8)); ?>

などとやってみればわかりますが、
実際には string が帰ってくるので、mixed ではないのですが、
確かに typo は typo です。




PHP-doc メーリングリストの案内