Re: reverse string without strrev();
| From: | Aschwin Wesselius | Date: | Thu, 28 Feb 2008 15:57:12 +0000 |
| Subject: | Re: reverse string without strrev(); | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-270582@lists.php.net to get a copy of this message | ||
Robert Cummings wrote:
It wouldn't really be "in place" if it wasn't a reference. Since the engine would immediately perform a copy on the first write to a passed non reference string :)Still to much to learn..... Nice list to learn from.... thanks. I just started to learn more and more about C syntax and solutions, where a lot of optimization and tradeoffs is made. Memory, speed, filesystem access etc. I had to look twice before I understood what you did with the shuffle. -- Aschwin Wesselius <social> What you would like to be done to you, do that to the other.... </social>