[wp-hackers] echo and return

Brian Meidell brian at mindflow.dk
Tue Jul 27 14:16:41 UTC 2004


> pass something with spaces?  Or an ampersand?  Is the template tag
> user supposed to be calling "urlencode" on all the values?

You are pointing out a valid problem.

> my_function( array( "foo" => $foo, "option" => true, "whatever" => 1) );

I agree with this. It's preferable to uri style, and it saves the parsing.

> $foo above could have itself been an array, or a file handle, or
> something else that is hard to stringify.

This is also a good point - what do you do with uris if you need to pass 
something that isn't a string or a number?

/Brian




More information about the hackers mailing list