•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,825 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,010 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 486 | Replies: 10 | Solved
I use an array for the first time in a while loop without declaring it(as php does not need it)
As the while loop is repeating it increases the number of the array.
Am I doing this right?
Should I have before the loop some code like:
Dont know abit confused and lost.
Thanks, Regards X
syntax Syntax (Toggle Plain Text)
$variable_array[] = $fetch_array['column'];
As the while loop is repeating it increases the number of the array.
Am I doing this right?
Should I have before the loop some code like:
syntax Syntax (Toggle Plain Text)
$variable_array = array();
Dont know abit confused and lost.
Thanks, Regards X
Last edited by OmniX : May 9th, 2008 at 4:40 am.
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Functions and Array help (C++)
- Initialization of Const Arrays by function (C)
- Help : Pointers to array of class objects . (C++)
- Reading an array from a file (Java)
- template array initialization (C++)
- 'C' initializer problem (C)
- problem creating a for loop for an array (C++)
- Return multidimension array (C)
Other Threads in the PHP Forum
- Previous Thread: public/private in php
- Next Thread: Search from multiple tables ??



Threaded Mode