I'd like to strip out php content from a page for a printer friendly version.
I tried this below. Only works if the php is on one line.
Ignores any php that has multiple lines.
$contents = preg_replace("/<\?.+\?>/", "", $contents);
Anyone tell me what I'm doing wrong?
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/