PHP 8.5.0 Alpha 2 available for testing

Voting

: two minus zero?
(Example: nine)

The Note You're Voting On

sergei at 2440media dot com
17 years ago
Finally we can implement some ActiveRecord methods:

<?php

class Model
{
public static function
find()
{
echo static::
$name;
}
}

class
Product extends Model
{
protected static
$name = 'Product';
}

Product::find();

?>

Output: 'Product'

<< Back to user notes page

To Top