PHP 5.3 Part 1 - Introduction to PHP 5.3

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    3 Favorites

    PHP 5.3 Part 1 - Introduction to PHP 5.3 - Presentation Transcript

    1. PHP 5.3 – Part 1 Introduction to PHP 5.3 A Sydney PHP Group Presentation 4 th September 2008 By Timothy Chandler
    2. So what’s the big deal!?
      • PHP 5.3 = PHP 6 - Unicode + MORE!
      • Tomorrow’s PHP Today.
      • Forwards Compatibility.
    3. So what’s new?
      • New Syntax
      • New Functions & Methods
      • New Extensions
      • Namespaces
      • Lambda Functions & Closures
      • Late Static Binding
      • Lots of important changes
      • A few gotchas.
    4. Important Changes & Gotchas
      • Functions
        • Array functions “next()” & “current()” no longer work with objects.
        • “ session_start()” will now return a Boolean response “false” if it fails to start a session.
        • By default, “ clearstatcache()” will no longer clear “realpath()” cache.
      Backwards Compatibility
    5. Important Changes & Gotchas
      • Magic Methods
        • All magic methods must now be declared as “public”. “static” declarations are no longer allowed.
        • “ __toString()” will no longer accept any parameters.
      Backwards Compatibility
    6. Important Changes & Gotchas
      • New Reserved Words
        • “ namespace”
        • “ goto”
      • New Reserved Classes
        • “ Closure”
      Backwards Compatibility
    7. Important Changes & Gotchas
      • Depreciations
        • Ticks
          • This includes “register_tick_function()”
      • Undepreciations
        • “ is_a()”
      Backwards Compatibility
    8. Important Changes & Gotchas
      • Windows
        • Any Windows OS prior to Windows 2000 is no longer supported.
      Backwards Compatibility
    9. Important Changes & Gotchas
      • Removed
        • ncurses
        • fpdf
        • sybase
        • dbase
        • fbsql
      Extensions
      • Added
        • Phar
        • Internationalization (Intl)
        • File Information (Fileinfo)
        • SQLite3
    10. Important Changes & Gotchas
      • Not allowed to disable.
        • PCRE
        • Reflections
        • SPL
      Extensions
    11. Important Changes & Gotchas
      • More powerful ini.
      • A whole slew of changes which may or may not affect you.
      The PHP INI File
    12. New Syntax
      • It’s like HEREDOC, but it doesn’t evaluate it’s contents.
      • Syntax:
      • <<<‘NOWDOC’
      • <CONTENT>
      • NOWDOC;
      • “ NOWDOC”, like “HEREDOC”, can be replaced with any non-reserved word.
      NOWDOC
    13. New Syntax
      • The Ternary Operator has been given a shortcut.
      • Testing for only “true” or “false” is now possible.
      • Syntax:
      • $foo=true;
      • !$foo?:print '$foo is True<br />';
      • $bar=false;
      • $bar?:print '$bar is False<br />';
      Ternary Operator
    14. New Syntax
      • You can now cast a variable to NULL while using it and remove it from memory in one fell swoop.
      • Syntax:
      • $foo='foo';
      • $foo=(unset)print $foo;
      Unset Casting
    15. New Syntax
      • The new “goto” keyword is useful for controlling breaks in loops and switches.
      • Not recommended outside of loops and switches.
      • Easy to abuse – be careful with your GCP.
      • Syntax:
      • print 1;
      • goto label1;
      • print 2;
      • print 3;
      • label1:
      • print 4;
      goto
    16. New Functions & Methods
      • Too many for this presentation.
      • They include:
        • Array
        • Date
        • GMP
        • Hash
        • Image
        • Math
        • Mcrypt
        • Network
        • PCNTL
        • PHP Core
        • SHM
        • SPL
        • Streams
        • Strings
    17. New Functions & Methods
      • “ array_replace()” – Finds and replaces based on key and merges the remainder.
      • “ array_replace_recursive()” – Recursively finds and replaces based on key and merges the remainder.
      Array Functions
    18. New Functions & Methods
      • “ date_add()” – Adds an amount of days, months, years, hours, minutes and seconds to a DateTime object.
      • “ date_sub()” – Subtracts an amount of days, months, years, hours, minutes and seconds from a DateTime object
      • “ date_diff()” – Takes two DateTime Objects and calculates the difference.
      Date Functions
    19. New Functions & Methods
      • “ class_alias()” – Creates an alias of a class name.
      • “ forward_static_call()” and “forward_static_call_array()” – Related to Late Static Binding. This will be discussed in another presentation.
      PHP Core
    20. Coming Up
      • October
        • Part 2 – New PHP Internals
          • Lambda Functions and Closures
          • Namespaces – maybe?
      • November
        • Part 3 – New PHP Extensions
          • Internationalization
          • Phar

    + melechimelechi, 2 years ago

    custom

    1136 views, 3 favs, 0 embeds more stats

    This is part 1 in a series about PHP 5.3.

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1136
      • 1136 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 3
    • Downloads 41
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories