blob: 47cd4c01b69dd6bf42d01e9b84dcbeff8be68f94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
function simple_function() {
echo "Hello";
}
function function_with_args($a, $b) {
return $a + $b;
}
class MyClass {
public function myMethod() {
echo "Method";
}
protected static function protectedStaticMethod() {
// ...
}
}
const GLOBAL_CONST = 1;
class AnotherClass {
const CLASS_CONST = 2;
}
interface MyInterface {
public function interfaceMethod();
}
|