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]
|