C Chris2k Banned Banned 901 2009 17 Jan 20, 2012 #1 hi my time ago function: PHP: fixed and removrf im using timeAgo($subtime) to output it, can any1 tell me wot's wrong? Last edited: Jan 24, 2012
hi my time ago function: PHP: fixed and removrf im using timeAgo($subtime) to output it, can any1 tell me wot's wrong?
L Lock Down Senior Member 2,122 2010 228 Jan 21, 2012 #2 First thing that jumps out is you have a ; instead of : at end of case lines.
A Apathetic Experienced Member 899 2011 241 Jan 21, 2012 #3 1. You're switch-casing `1`? 2. The "parameter" in ur case statement will be returning true/false Read More: http://php.net/manual/en/control-structures.switch.php Last edited: Jan 21, 2012
1. You're switch-casing `1`? 2. The "parameter" in ur case statement will be returning true/false Read More: http://php.net/manual/en/control-structures.switch.php