Possible Duplicate:
php include prints 1
$html = '<div class="subscribe_user"><span id="question1"><a href="#" id="subscribe_link" data-category="'.$category.'">
Subscribe to comments made on '.$category.'</a></span></div>' . include(SUBSCRIBE_USER_BASE_DIR . '/includes/av_subscribe_form.php');
This include file is an HTML form with some PHP variables.
I’m returning the $html via a plugin:
return $html;
But I cannot get rid of the ‘1’ appended to the output. Of course this means it’s a success for inputting the file but how can I work around this?
Since you probably want the PHP processed and the output stored in the variable, this will do the trick: