You are here: Re: Error messages « PHP Programming Language « IT news, forums, messages
Re: Error messages

Posted by Michael Fesser on 08/30/07 04:55

..oO(Fabio)

>This seems a really bad implementation of php.
>Php let you indicate the data type to be used and then considers it as a
>syntax error???

The manual is pretty clear about that:

| Type Hints can only be of the object and array (since PHP 5.1) type.
| Traditional type hinting with int and string isn't supported.

Or in other words - it works for complex types, but not for scalars.

Micha

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация