You are here: Re: Does NULL equal empty string? « PHP « IT news, forums, messages
Re: Does NULL equal empty string?

Posted by Markus L. on 11/14/05 00:25

Am Sun, 13 Nov 2005 22:49:33 +0100 schrieb Michael Ruebner:

> Hi,
>
> I would like to pass some $_REQUEST values to a HTML forms class that
> expects string input. Can I savely assume that unset (NULL) values will
> always map to an empty string? This is in PHP 4 with an upgrade to 5
> pending.
>
> TIA
>
> Mike
>
> f'up php.general

AFAIK this is true. You can additionaly cast the variables to string.


--
-------------------------------------------------------
Try this: SCA the Smart Class Archive for PHP
http://www.project-sca.org
-------------------------------------------------------

 

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

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