Re: [PHP] Return Values Copied? Copied if By Reference?

2006-07-27 Thread Robert Cummings
On Thu, 2006-07-27 at 14:48, Adam Zey wrote: > KermodeBear wrote: > > Robert Cummings wrote: > > > > Then how come when I do a foreach on an array (without modifying > > anything within the foreach), it still makes a copy of the array that > > consumes memory? I think it's dangerous to generaliz

Re: [PHP] Return Values Copied? Copied if By Reference?

2006-07-27 Thread Adam Zey
KermodeBear wrote: Robert Cummings wrote: Then how come when I do a foreach on an array (without modifying anything within the foreach), it still makes a copy of the array that consumes memory? I think it's dangerous to generalize that it's always best to let PHP make copies of things. In the

RE: [PHP] Return Values Copied? Copied if By Reference?

2006-07-27 Thread KermodeBear
Robert Cummings wrote: Then how come when I do a foreach on an array (without modifying anything within the foreach), it still makes a copy of the array that consumes memory? I think it's dangerous to generalize that it's always best to let PHP make copies of things. In the foreach situation, t

Re: [PHP] Return Values Copied? Copied if By Reference?

2006-07-27 Thread Adam Zey
Robert Cummings wrote: On Thu, 2006-07-27 at 01:35, Larry Garfield wrote: On Wednesday 26 July 2006 21:41, Robert Cummings wrote: I'm working on some code that would be called to generate a cell in a possibly large table and therefore a small difference in performance may have a significant im

Re: [PHP] Return Values Copied? Copied if By Reference?

2006-07-27 Thread Robert Cummings
On Thu, 2006-07-27 at 01:35, Larry Garfield wrote: > On Wednesday 26 July 2006 21:41, Robert Cummings wrote: > > > > I'm working on some code that would be called to generate a cell in a > > > possibly large table and therefore a small difference in performance > > > may have a significant impact.

Re: [PHP] Problem with rawurlencode and euro sign.

2006-07-27 Thread Satyam
At: http://es2.php.net/manual/en/function.htmlentities.php it says that ISO-8859-15 adds the Euro sign - Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]> To: "Mathijs" <[EMAIL PROTECTED]> Cc: Sent: Thursday, July 27, 2006 12:39 PM Subject: Re: [PHP] Problem with rawurlenco

Re: [PHP] Problem with rawurlencode and euro sign.

2006-07-27 Thread Jochem Maas
likely to be something to do with the fact that the euro character does not exist in ISO8859-1. maybe this page helps: http://www.gar.no/html/euro.htm Mathijs wrote: > Hello there, > > I have a problem with rawurlencode(). > I want to have the euro sign € to be sent by post. > To do this

Re: [PHP] Problem with rawurlencode and euro sign.

2006-07-27 Thread Mathijs van Veluw
Thx for that website :). It helped. I Think the server i am sending to is on windows, and i changed the encoding to windows-1252 and that has it on %80. Going to contact the company to ask this :). Thx for the link. Jochem Maas wrote: likely to be something to do with the fact that the euro

[PHP] Problem with rawurlencode and euro sign.

2006-07-27 Thread Mathijs
Hello there, I have a problem with rawurlencode(). I want to have the euro sign € to be sent by post. To do this, first rawurlencode() encodes all the chars. But for some reason rawurlencode encodes it to %3F or %A4. Which i think is logical becouse that is the right position in the charset. Bu