<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									PHP - Temporary suppress Warnings - Web Development				            </title>
            <link>https://www.tweaking4all.com/forum/web-development/php-temporary-suppress-warnings/</link>
            <description>Tweaking4All.com Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 17 Jun 2026 03:49:16 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>PHP - Temporary suppress Warnings</title>
                        <link>https://www.tweaking4all.com/forum/web-development/php-temporary-suppress-warnings/#post-1991</link>
                        <pubDate>Fri, 06 Mar 2020 19:15:02 +0000</pubDate>
                        <description><![CDATA[Sometimes things don&#039;t quite go the way we like.For example ... a function in PHP that throws a Warning which we&#039;d like to suppress.
The coolest trick I have seen (besides the obvious ones)...]]></description>
                        <content:encoded><![CDATA[<p>Sometimes things don't quite go the way we like.<br />For example ... a function in PHP that throws a Warning which we'd like to suppress.</p>
<p>The coolest trick I have seen (besides the obvious ones) is simply by adding an "@" in front of the function that is causing the issue.</p>
<p>Please note: this is just to HIDE the warning.<br />It is better to fix the issue ... but sometimes the issue cannot be fixed right away.</p>
<p>How to use this:</p>
<p>Say you have the functions (I'm showing 2 examples)</p>
<pre>dosomething();<br /><br />$xyz = calculatesomthing();</pre>
<p>And these function throws a warning.<br />To suppress the warning:</p>
<pre><span style="color: #ff0000"><strong>@</strong></span>dosomething();<br /><br />$xyz = <span style="color: #ff0000"><strong>@</strong></span>calculatesomthing();</pre>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/web-development/">Web Development</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/web-development/php-temporary-suppress-warnings/#post-1991</guid>
                    </item>
							        </channel>
        </rss>
		