Jump to content

Archived

This topic is now archived and is closed to further replies.

amalosoul

Prevent an error

Recommended Posts

Can I stop this error from being shown on the browser (even though I know it exists)
v[0]=1; echo v[2];
The error is Undifined offset.

I don't want to fix the problem, I just want it not be shown...

Share this post


Link to post
Share on other sites
Try changing the error reporting level...

[code]<?php
error_reporting(E_ERROR);

$v[0]=1;
echo $v[2];
?>[/code]

Regards
Huggie

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.