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/migration53.methods.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/migration53.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'migration53.methods.php',
   
1 => 'New Methods',
  ),
 
'up' =>
  array (
   
0 => 'migration53.php',
   
1 => 'Migrating from PHP 5.2.x to PHP 5.3.x',
  ),
 
'prev' =>
  array (
   
0 => 'migration53.class-constants.php',
   
1 => 'New Class Constants',
  ),
 
'next' =>
  array (
   
0 => 'migration53.new-extensions.php',
   
1 => 'New Extensions',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="migration53.methods" class="section">
  <h2 class="title">New Methods</h2>
  <p class="simpara">
   Several new methods were introduced in 5.3.0:
  </p>

  <p class="simpara"><a href="book.datetime.php" class="link">Date/Time</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="datetime.add.php" class="function">DateTime::add()</a>
     - Adds an amount of days, months, years, hours, minutes and seconds to a
     <a href="class.datetime.php" class="classname">DateTime</a> object.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="datetime.createfromformat.php" class="function">DateTime::createFromFormat()</a>
     - Returns a new <a href="class.datetime.php" class="classname">DateTime</a> object formatted according
     to the given format.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="datetime.diff.php" class="function">DateTime::diff()</a>
     - Returns the difference between two <a href="class.datetime.php" class="classname">DateTime</a>
     objects.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="datetime.getlasterrors.php" class="function">DateTime::getLastErrors()</a>
     - Returns the warnings and errors from the last date/time operation.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="datetime.sub.php" class="function">DateTime::sub()</a>
     - Subtracts an amount of days, months, years, hours, minutes and seconds
     from a <a href="class.datetime.php" class="classname">DateTime</a> object.
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="class.exception.php" class="classname">Exception</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="exception.getprevious.php" class="function">Exception::getPrevious()</a>
     - Retrieves the previous exception.
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="book.dom.php" class="link">DOM</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="domnode.getlineno.php" class="function">DOMNode::getLineNo()</a>
     - Get the line number of a parsed node.
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="ref.pdo-firebird.php" class="link">PDO_FIREBIRD</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="pdo.setattribute.php" class="function">PDO::setAttribute()</a>
     - Sets an attribute.
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="book.reflection.php" class="link">Reflection</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
      <span class="methodname"><a href="reflectionclass.getnamespacename.php" class="function">ReflectionClass::getNamespaceName</a></span>
     - Returns the name of namespace where this class is defined.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
      <span class="methodname"><a href="reflectionclass.getshortname.php" class="function">ReflectionClass::getShortName</a></span>
     - Returns the short name of this class (without namespace part).
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
      <span class="methodname"><a href="reflectionclass.innamespace.php" class="function">ReflectionClass::inNamespace</a></span>
     - Returns whether this class is defined in a namespace.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
      <span class="methodname"><b>ReflectionFunction::getNamespaceName</b></span>
     - Returns the name of namespace where this function is defined.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
      <span class="methodname"><b>ReflectionFunction::getShortName</b></span>
     - Returns the short name of the function (without namespace part).
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
      <span class="methodname"><b>ReflectionFunction::inNamespace</b></span>
     - Returns whether this function is defined in a namespace.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
      <span class="methodname"><a href="reflectionproperty.setaccessible.php" class="function">ReflectionProperty::setAccessible</a></span>
     - Sets whether non-public properties can be requested.
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="book.spl.php" class="link">SPL</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="splobjectstorage.addall.php" class="function">SplObjectStorage::addAll()</a>
     - Add all elements from another SplObjectStorage object.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="splobjectstorage.removeall.php" class="function">SplObjectStorage::removeAll()</a>
     - Remove all elements from another SplObjectStorage object.
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="book.xsl.php" class="link">XSL</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="xsltprocessor.setprofiling.php" class="function">XSLTProcessor::setProfiling()</a>
     - Sets the profiling output file.
    </span>
   </li>
  </ul>
 </div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites