You are here: Re: E_ALL: notice with list() « PHP Language « IT news, forums, messages
Re: E_ALL: notice with list()

Posted by Marc Bauer on 10/14/07 09:48

> If all you want to do is hide the notice, prepend the function with an
> at sign.
> e.g.
> @explode("Second part match string", $text);

this sounds very easy... what does this "@" do? Do you have any php docs
about this? I cannot find anything...

Aside - what is the cause of this error? I'd like to understand this and not
only supress and notice... maybe i should better alter this line in an
appropiate way that this list() works without the @ sign. As i remember the
notice doesn't come from "explode". The error comes from the list... I'm not
sure, but it look like explode does not generate two array members with
explode if the string isn't found and the list now tries to use two, but
only have one array member... i don't know how to init the vars to be save.


Marc

 

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

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