You are here: Re: Typecast problem in PHP 5.0.4 « PHP Programming Language « IT news, forums, messages
Re: Typecast problem in PHP 5.0.4

Posted by Mani on 12/16/82 11:57

I didnt copied and it was written by me. $forecast is an xml element
and 'day_sequence' is an attribute in it and am using simplexml to
parse the document.

For ex, the structure is

<forecast day_sequence = "4" />

Hope the above info will get you to give me the solution.

--
Mani


Alvaro G. Vicario wrote:

> *** Mani escribió/wrote (2 Sep 2006 22:38:05 -0700):
> > I am in a situation to do further process only if it is less than 4 so
> > i need to compare in better way not like the existing code. Can you
> > suggest how to write alternative code for the following snippet?
> >
> > if ( (int) $forecast['day_sequence'] < 4 ) {
>
> Did you write this code yourself or is it a snipped you copied from
> somewhere? It seems that you don't have the faintest idea of what
> forecast['day_sequence'] is ... :-?
>
>
>
> --
> -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
> ++ Mi sitio sobre programación web: http://bits.demogracia.com
> +- Mi web de humor con rayos UVA: http://www.demogracia.com
> --

 

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

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