On Tue, Jan 6, 2015 at 10:45 AM, Stephan Beal <[email protected]> wrote:
> PHP's general-purpose mechanism for warning squelching is to prepend the
> command which is warning with an @ sign:
>
>
> if( @someFuncWhichWarns() ) { ... }
>
To be clear: the @ does NOT change the result of the function in any way
(so it has no effect on whether or not the above if() block is entered). It
only squelches warning/error(?) output.
It can also be used on methods: @$obj->foo(). It cannot be used with
function-like keywords, e.g. @isset() doesn't work IIRC.
--
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users