You are here: Re: What's wrong with this simple line of code? « PHP Programming Language « IT news, forums, messages
Re: What's wrong with this simple line of code?

Posted by Geoff Berrow on 03/10/07 00:26

Message-ID: <55e9srF251ueiU1@mid.dfncis.de> from Christoph Burschka
contained the following:

>> If you don't know if the variable even exists, use
>> if (exists($book_review_url) && $book_review_url != "")
>
>exists() isn't mentioned anywhere in the PHP manual - I assume you mean isset()...

or you can just do

if (!empty( $book_review_url )){
,,,
}

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

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

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