I'm having trouble understanding this syntax error:
Parse error: syntax error, unexpected T_STRING in /home/students/phannum/public_html/n413/ooplr/classes/Cookie.php on line 19
Here it is in my code, highlighted and bolded:
<?php
class Cookie {
public static function exists($name) {
return (issest($_COOKIE[$name])) ? true : false;
}
public static function get($name) {
return $_COOKIE[$name];
}
public static function put($name, $value, $expiry) {
if(setcookie($name, $value, time() + $expiry, '/')) {
return true;
}
return false;
}
public static function delete($name){
self::put($name, ',' time() - 1);
}
}
Anything to help would be awesome!