amalosoul Posted October 17, 2006 Share Posted October 17, 2006 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... Link to comment https://forums.phpfreaks.com/topic/24191-prevent-an-error/ Share on other sites More sharing options...
ToonMariner Posted October 17, 2006 Share Posted October 17, 2006 use v[0]=1;@ echo v[2]; Link to comment https://forums.phpfreaks.com/topic/24191-prevent-an-error/#findComment-109938 Share on other sites More sharing options...
amalosoul Posted October 17, 2006 Author Share Posted October 17, 2006 I get another error :parse error unexpected T_ECHO! Link to comment https://forums.phpfreaks.com/topic/24191-prevent-an-error/#findComment-109939 Share on other sites More sharing options...
HuggieBear Posted October 17, 2006 Share Posted October 17, 2006 Try changing the error reporting level...[code]<?phperror_reporting(E_ERROR);$v[0]=1;echo $v[2];?>[/code]RegardsHuggie Link to comment https://forums.phpfreaks.com/topic/24191-prevent-an-error/#findComment-109945 Share on other sites More sharing options...
amalosoul Posted October 17, 2006 Author Share Posted October 17, 2006 Thank you very much! This worked:)! Link to comment https://forums.phpfreaks.com/topic/24191-prevent-an-error/#findComment-110146 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.