PHPStraßenkreuzung
24./25. November 2009München
Stay in contact
http://twitter.com/pierrejoye
http://www.facebook.com/pierre.joye
http://www.linkedin.com/in/pierrejoye
http://www.xing.com/profile/Pierre_Joye
?
??5.25.3
4 !?
??
??
??
??
6 ?!
Die Geschichte von PHPPH
P 4.
04.
14.
24.
34.
4
5.0
5.1
5.2
5.3
Nex
t?
2000 2004
2001
2001
2002
2005
2005
2006
2009
2012
Gu
te (
alt
e)
Nach
rich
tS
ch
lech
te N
ach
rich
t
intl
namespace
enchant
closure
windows
ifsetor
phar
Ifsetor$id = $_GET['id'] ?: 0;
var_dump($id);
Namespace\includenamespace Foo\Bar\subnamespace; const FOO = 'Foo\\Bar\\subnamespace'; function foo() {} class foo {
static function staticmethod() {
echo "static method Foo\\Bar\\subnamespace"; } }
Namespaceinclude 'namespace1_inc.php';const FOO = 'Foo\\Bar';function foo() {}class foo {
static function staticmethod() {echo "static method Foo\\Bar";
}}
Namespace\unqualified/* Unqualified name */foo::staticmethod();echo FOO;
Namespace\qualifiedsubnamespace\foo::staticmethod();echo subnamespace\FOO;
Namespace\fully\qualified\Foo\Bar\foo();
\Foo\Bar\foo::staticmethod();
echo \Foo\Bar\FOO;
Closures$myarray = array(3, 9, 2);$myarray = array_filter(
$myarray,function ($elm) {
return $elm > 5;}
);var_dump($myarray);
static vs self w/ lsbclass Base {
public static function m() { self::printName();
static::printName();}static function printName() {
echo __CLASS__; echo '<br />';}
}Base::m();
static vs self w/ lsbclass Extended extends Base {
static function printName() {echo __CLASS__;echo '<br />';
}}
intl$fmt2 = new MessageFormatter("de_DE", "{0,number,integer} Affen auf {1,number,integer} Baumen sind {2,number} Affen pro Baum"); echo $fmt2->format(array(4560, 123, 4560/123)); echo "<br />";
$fmt = new MessageFormatter("en_US", "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree"); echo $fmt->format(array(4560, 123, 4560/123));
phar Jar for PHP Easy way to distribute applications Custom format or use tar/zip Mapping requests to a file inside
the phar
enchant UTF-8 support MySpell/HunSpell (OpenOffice)
support Zemberek (Tuerkisch) One API AppleSpell on Mac OS X Aspell/Pspell
noSQL
NoOS
•CouchDB
•MongoDB
•MemCache(d)
•SimpleDB
•Mashups
•JS
•Apps
•Web 2.0 apps
Top Related