SGUserFace Posted July 26, 2016 Share Posted July 26, 2016 I have file look like: How can i print the erroes? Quote Link to comment Share on other sites More sharing options...
Barand Posted July 26, 2016 Share Posted July 26, 2016 foreach() loop Quote Link to comment Share on other sites More sharing options...
SGUserFace Posted July 27, 2016 Author Share Posted July 27, 2016 foreach() loop Ofcourse, but the error occurs after print $errors Quote Link to comment Share on other sites More sharing options...
Barand Posted July 27, 2016 Share Posted July 27, 2016 Then you may be doing something wrong. Quote Link to comment Share on other sites More sharing options...
SGUserFace Posted July 27, 2016 Author Share Posted July 27, 2016 (edited) Then you may be doing something wrong. it is the code Edited July 27, 2016 by SGUserFace Quote Link to comment Share on other sites More sharing options...
Barand Posted July 27, 2016 Share Posted July 27, 2016 OK, so you create an empty array print each value in this empty array put an item into the array So what error are you getting? What are you expecting that isn't happening? What is happening that you don't expect? Give me a clue! Quote Link to comment Share on other sites More sharing options...
SGUserFace Posted July 27, 2016 Author Share Posted July 27, 2016 OK, so you create an empty array print each value in this empty array put an item into the array So what error are you getting? What are you expecting that isn't happening? What is happening that you don't expect? Give me a clue! I get blank page. none errors Quote Link to comment Share on other sites More sharing options...
Barand Posted July 27, 2016 Share Posted July 27, 2016 Do you expect to see something when you print the contents of an empty array? Quote Link to comment Share on other sites More sharing options...
SGUserFace Posted July 27, 2016 Author Share Posted July 27, 2016 Do you expect to see something when you print the contents of an empty array? What can I do if the error occurs after print? Quote Link to comment Share on other sites More sharing options...
Barand Posted July 27, 2016 Share Posted July 27, 2016 The trick is to organize your code so that you collect the error messages before you do the print. 1 Quote Link to comment Share on other sites More sharing options...
SGUserFace Posted July 27, 2016 Author Share Posted July 27, 2016 The trick is to organize your code so that you collect the error messages before you do the print. How? Quote Link to comment Share on other sites More sharing options...
Barand Posted July 27, 2016 Share Posted July 27, 2016 By applying some thought to the problem and coming up with a logical sequence of events. Quote Link to comment Share on other sites More sharing options...
SGUserFace Posted July 27, 2016 Author Share Posted July 27, 2016 By applying some thought to the problem and coming up with a logical sequence of events. Its big project with full include so I dont know how to do it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.