Hi guys,
I've got his code that I use a lot.
$images =&get_children( 'post_type=attachment&post_mime_type=image&post_parent=' . get_the_id() );
My question is what does the ampersand (bolded) do in that case?
Hi guys,
I've got his code that I use a lot.
$images =&get_children( 'post_type=attachment&post_mime_type=image&post_parent=' . get_the_id() );
My question is what does the ampersand (bolded) do in that case?
Perhaps this is what you are looking for . . .
http://www.whypad.com/posts/php-what-is-the-ampersand-preceding-variables/193/
No, that won't answer my question, but thanks anyway. I read that before I came to the forums for help.
This is the assign by reference operator; this way you get a real reference (or alias) as opposed to a copy of a reference; this doesn't matter so much these days, assuming you're using PHP5.
http://www.daaq.net/old/php/index.php?page=php+variables&parent=php+basics
You must log in to post.