New to PHP and just trying to understand a little code.


Posted on 16th Feb 2014 07:03 pm by admin

I hope I'm not annoying anyone or breaking the rules but I was wondering about this bit of code right here:
" <?php
$people = Array(
Array('name' => 'Kalle', 'salt' => 856412),
Did you know?Explore Trending and Topic pages for more stories like this.
Array('name' => 'Pierre', 'salt' => 215863)
);
for($i = 0; $i < sizeof($people); ++$i)
{
$people[$i]['salt'] = rand(000000, 999999);
}
?> "

Okay from what I can get from this $i will continue to increase and the code will execute until ..... this seems too random or me to realize the goal of this code.
No comments posted yet

Your Answer:

Login to answer
187 Like 30 Dislike
Previous forums Next forums
Other forums

Post, not working, please help
The error is:
Method Not Allowed
The requested method POST is not allowed for the URL /student

insert mysql embeded videos as blobs?
Using TinyMCE my client will be able to embed images and flash videos into large columns of text whi

Performance impact of cookies
Hi, I was just wondering what impact there would be in terms of performance if you where to set then

Function
How can I make this function that once you click the link in the code it takes you to a new page wit

! = ''
In the following 'IF' statement if v_ompcat = PU for example then Oracle equates that 'IF' statement

i need help with php header and footer
I have designed a header and footer for my site and they seem to be ok when they are running individ

Help with syntax
Hi all!

The $bridge variable is not getting passed while it is contained in the line below:

if else problem, help please
i have this script that i made only i try to also put in a if else for for some reason the script is

Number Format
Hi All,

I have number '000000000050085' I want to format it to 500.85 Can any one give me

pointer 102 question
I read a book
1
2
3
4
5
6
7
8
9
10
11
12
int main() {

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash