Blog literacki, portal erotyczny - seks i humor nie z tej ziemi
ObjectsPodręcznik PHPPoprzedniRozdział 6. TypesNastępnyObjectsObject Initialization To initialize an object, you use the new
statement to instantiate the object to a variable.
<?php
class foo
{
function do_foo()
{
echo "Doing foo.";
}
}
$bar = new foo;
$bar->do_foo();
?>
For a full discussion, please read the section Classes and Objects.
PoprzedniSpis treściNastępnyArraysPoczątek rozdziałuResource