MrXander Posted November 1, 2009 Share Posted November 1, 2009 Hi Guys, I used to use a single line of code, where if more than one error occured, it would show for example: "2 errors found" Whereas if only one was found, would echo: "1 error found" I can't remember how on earth I did this so any assistance would be appreciated. Link to comment https://forums.phpfreaks.com/topic/179848-solved-using-plural-for-1-error/ Share on other sites More sharing options...
MrXander Posted November 1, 2009 Author Share Posted November 1, 2009 Sorry, I've figured it out: '.($e == 1 ? "" : "s").' Thanks anyway! Link to comment https://forums.phpfreaks.com/topic/179848-solved-using-plural-for-1-error/#findComment-948771 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.