PHP Code Help!

Status
This thread has been locked.

MTG

Supreme
Feedback score
78
Posts
2,456
Reactions
2,600
Resources
0
<html>
<head>
<title></title>
</head>
<body>
<p>
<?php
class Person {
public function say() {
echo "Here are my thoughts!";
}
public static function say() {
Blogger::say();
}
}
class Blogger extends Person {
const cats=50;

}
echo Blogger::cats;
?>
</p>
</body>
</html>
whats wrong here :3
Fatal error: Cannot redeclare Person::say() on line 12
and please don't judge lol
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Chearful

thomas.gg
Supreme
Feedback score
115
Posts
1,398
Reactions
2,236
Resources
0
You've defined the same function name twice.
 

MTG

Supreme
Feedback score
78
Posts
2,456
Reactions
2,600
Resources
0
Status
This thread has been locked.
Top