bosco Posted June 24, 2008 Share Posted June 24, 2008 I just finished up a large tutorial in php. One thing has got me stumped. I wonder if someone can provide an answer. It isn't tutorial specific so I'll skip all that. Other tutorials are the same way. The php programer builds his database, names his variables and creates his functions. He knows what is where. So why test if something is null, or present or whatever if you know what's there? It may sound like a silly question but it really doesn't make sense to me. I know I put the value of 3 in the 4th key of an array, why test to see if it is there? Any help to get me to understand will be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/111665-testing-values/ Share on other sites More sharing options...
trq Posted June 24, 2008 Share Posted June 24, 2008 Any data comming from user input needs to be tested to make sure it exists and is valid. Link to comment https://forums.phpfreaks.com/topic/111665-testing-values/#findComment-573182 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.