There were a few things that were to be added to PHP 6 that hear have been dropped, that I'm quite dissapointed about..
ifsetor instead of $hello = isset($hello)? $hello :123456;
optional params for functions.
But glad they've dropped register_globals
and glad they're adding foreach for multi-dimentional arrays.
Anything you would have liked to seen added?
Things that could be dropped from PHP 6
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Cool
The namespace stuff looks like I imagined it would work in terms of "using" it but not in terms of declaring it. Pretty neat anyway so this should now work without errors if I read it correctly.
The ability to require the constructor be run when part of an inheritance hierarchy is a great idea too.
Code: Select all
<?php
namespace myPackage
{
class myClass {
public function __construct() {
echo "myClass Called from namespace\n";
}
}
function myFunction() {
echo "myFunction called from namespace\n";
}
}
function myFunction() {
echo "myFunction called globally\n";
}
class myClass {
public function __construct() {
echo "myClass called globally\n";
}
}Code: Select all
<?php
$o = new myClass(); //myClass called globally
myFunction(); //myFunction called globally
import myPackage;
$o = new myClass(); //myClass called from namespace
myFunction(); //myFunction called from namespacehttp://www.php.net/~derick/meeting-notes.htmlfeyd wrote:Where did you hear these claims?