downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/oop5.intro.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/language.oop5.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'oop5.intro.php',
   
1 => 'Introduction',
  ),
 
'up' =>
  array (
   
0 => 'language.oop5.php',
   
1 => 'Classes and Objects',
  ),
 
'prev' =>
  array (
   
0 => 'language.oop5.php',
   
1 => 'Classes and Objects',
  ),
 
'next' =>
  array (
   
0 => 'language.oop5.basic.php',
   
1 => 'The Basics',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="oop5.intro" class="sect1">
   <h2 class="title">Introduction</h2>
   <p class="para">
    Starting with PHP 5, the object model was rewritten to allow for better
    performance and more features. This was a major change from PHP 4. PHP 5
    has a full object model.
   </p>
   <p class="para">
    Among the features in PHP 5 are the inclusions of
    <a href="language.oop5.visibility.php" class="link">visibility</a>,
    <a href="language.oop5.abstract.php" class="link">abstract</a> and
    <a href="language.oop5.final.php" class="link">final</a> classes and methods,
    additional <a href="language.oop5.magic.php" class="link">magic methods</a>,
    <a href="language.oop5.interfaces.php" class="link">interfaces</a>,
    <a href="language.oop5.cloning.php" class="link">cloning</a> and
    <a href="language.oop5.typehinting.php" class="link">typehinting</a>.
   </p>
   <p class="para">
    PHP treats objects in the same way as references or handles, meaning that
    each variable contains an object reference rather than a copy of the entire
    object. See
    <a href="language.oop5.references.php" class="link">Objects and References</a>
   </p>
   <div class="tip"><b class="tip">Tip</b><p class="simpara">See also the
<a href="userlandnaming.php" class="xref">Userland Naming Guide</a>.</p></div>
  </div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites