Home : Products : Gossamer Forum : Discussion :

Products: Gossamer Forum: Discussion: Re: [raphb] Why dymanic pages as opposed to HTMl?: Edit Log

Here is the list of edits for this post
Re: [raphb] Why dymanic pages as opposed to HTMl?
foreach($this->result as $key => $value) {

$this->result[$key] = $this->_stripform($value);


There's nothing special about that. In perl it would be:

while (my ($key, $value) = each %{$this->result}) {

I'm not sure about your next bit as you seem to be treating "result" as a class method but you then treat it as an array. Oh well.

Either way I consider the perl version to be more readable (and I'm not just saying that) - I find words mixed in with code to be more confusing.

Btw, how would you go about modifying every element in an array in php?

Say for example, what would the code be to create an array with 100 elements set to "1" and then modify them all to "11"?

Last edited by:

Paul: Nov 15, 2002, 6:40 AM

Edit Log: