<table border="1">
<tr onMouseOver="this.style.backgroundColor='#DBDDDE';" onMouseOut="this.style.backgroundColor='#0000ff';">
<td>ölkjöljk</td>
</tr>
</table>
| ölkjöljk |
$this refers to the class you are in.
|
Class Car {
function test() {
function another_test() { |
|
<?php
class Person {
public function __construct($name) {
public function getName() {
public function getTitle() {
public function sayHello() {
public function sayGoodbye() {
class Geek extends Person {
public function getTitle() {
$geekObj = new Geek("Ludwig"); ?> This will output:
Hello, I'm Ludwig the geek |
Hello, I'm Ludwig the geek Goodbye from Ludwig the person |