Re: How to display Array
- From: George Maicovschi <georgemaicovschi@xxxxxxxxx>
- Date: Sun, 30 Mar 2008 14:42:48 -0700 (PDT)
On Mar 30, 11:20 pm, Alexey Kulentsov <a...@xxxxxxxx> wrote:
SOLVER wrote:
How to dispaly something like that if I dont know how many rooms will
be?
At the moment I using function 'for' inside the function 'foreach'.
But this will not work when is only one room:
[ROOM][...]
'variable must be array' error?
You can check if(is_array(...)) for this case but I recommend you
rewrite data creating subroutine to have array with one element in the
case of one room and empty array in here are no rooms.
You'll have to write your own function to do that thing.
.
- References:
- How to display Array
- From: SOLVER
- Re: How to display Array
- From: SOLVER
- Re: How to display Array
- From: Alexey Kulentsov
- How to display Array
- Prev by Date: Re: Form helper issues "Invalid argument supplied for foreach()"
- Next by Date: Re: How to convert RSS dates to second since epoch?
- Previous by thread: Re: How to display Array
- Next by thread: how to access OpenOffice Writer (For mailmerge)
- Index(es):
Relevant Pages
|
|