[wp-hackers] echo and return

Joseph Scott joseph at randomnetworks.com
Tue Jul 27 18:14:25 UTC 2004


On Jul 27, 2004, at 9:17 AM, lowmagnet wrote:

> On Tue, Jul 27, 2004 at 09:06:15AM -0700, Joseph Scott wrote:
>> 	Nice to see someone brought this up.  If someone is tracking the
>> 	votes I'd got for this option above the URL format.  Besides, unless
>> everyone is using urlencode() on their parameters and all of the WP
>> functions use urldecode() to get the proper values the URL format will
>> break when values that aren't URL friendly are being passed (like 
>> spaces).
>
> Also, reminding people to put %20 in for space just seems unfriendly. 
> better to remove the temptation entirely.
>
> PERL (not that I like it but...) code mainly passes this way, and it 
> works surprisingly well. They don't use array() specifically, optiong 
> rather to shortcut to something like @{'a'=>'value'} or something 
> equaly obfuscated.

	Anonymous arrays and hashes in Perl are a very nice way to be able to 
pass arguments, I've been known to use that technique.

--
Joseph Scott
http://joseph.randomnetworks.com/




More information about the hackers mailing list