OOP Problem :S

Status
Not open for further replies.

VaginaMuncher

Chilling with me bitch Fiona
Mar 17, 2013
447
58
Code:
Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\ooplr\functions\Sanitize.php on line 4
Error In Image;

Sanitize.php;
Code:
<?php
function escape($string) {
    return htmlentities($string, ENT_QUOTES, 'UTF-8')
}
?>
I don't see what's wrong here...
 

Adil

DevBest CEO
May 28, 2011
1,278
718
Do you know how to write PHP code?
If you do know, you should be able to figure out that semi-colons terminate a line.
E.g
PHP:
<?php
function hello() {
    echo "hello";
}
?>
 

VaginaMuncher

Chilling with me bitch Fiona
Mar 17, 2013
447
58
Close thread. Fixed the colon thing lol.

spl_autoload_register(function($class) {
require_once 'classes/' . $class . 'php'; // forgot the . in the '.php' lol 0-.-
});
 
Status
Not open for further replies.

Users who are viewing this thread

Top