By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,722 Members | 1,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,722 IT Pros & Developers. It's quick & easy.

pushing elementson array with indices

P: n/a
Hi all,

I try to push elements on an array but without succes. I have a for loop and
need to do something like this array_push ($doelpunten, "$myrow[0]" =>
"$myrowDoelpunten[0]"); where myrow[0] is de indice and $myrowDoelpunten[0]
the value. $doelpunten is the array Someone can help me out?

Thanks
Stijn
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Gecke R?n" <me*****@hotmail.com> wrote:
I try to push elements on an array but without succes. I have a for loop and
need to do something like this array_push ($doelpunten, "$myrow[0]" =>
"$myrowDoelpunten[0]"); where myrow[0] is de indice and $myrowDoelpunten[0]
the value. $doelpunten is the array Someone can help me out?


Unless you are searching for:
$doelpunten[{$myrow[0]}]=$myrowDoelpunten[0];
give us an example of what the before and after looks like!

--

Daniel Tryba

Jul 17 '05 #2

P: n/a

"Daniel Tryba" <ne****************@canopus.nl> wrote in message
news:cj**********@news.tue.nl...
"Gecke R?n" <me*****@hotmail.com> wrote:
I try to push elements on an array but without succes. I have a for loop
and
need to do something like this array_push ($doelpunten, "$myrow[0]" =>
"$myrowDoelpunten[0]"); where myrow[0] is de indice and
$myrowDoelpunten[0]
the value. $doelpunten is the array Someone can help me out?


Unless you are searching for:
$doelpunten[{$myrow[0]}]=$myrowDoelpunten[0];
give us an example of what the before and after looks like!

--

Daniel Tryba


That did the job. Thanks
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.