eone give me access to create a page on the RFC site or create
a RFC for me and give me permission to update it, my username is 'easen'.
Thanks,
Marc
On 17/06/12 15:14, Lars Strojny wrote:
Hi Marc,
Am 11.06.2012 um 23:01 schrieb Marc Easen:
[...]
I don't see much of complex
On 11/06/12 20:13, Stas Malyshev wrote:
Hi!
Can be:
$var = 'abc';
echo $var[-1];
This seems simple enough for a hard-coded -1, but...
Would $var[-2] be strlen($var) - 2 and so on?
The main question is what happens with "foo"[-4] or ['x'][-2].
And then one would expect some rather complex l
On 11/06/12 20:28, Richard Lynch wrote:
On Mon, June 11, 2012 2:13 pm, Stas Malyshev wrote:
And then one would expect some rather complex logic to compute -N
for
$var[-N]
I don't see much of complex logic here, but $a[2] = 'a' would create a
new array element if it does not exist, while $a[-2]
I have submitted a patch to support negative indexs in strings, as per
the conversation adding them to arrays could possibly detract from the
syntactical sugar they are indented to be.
In summary:
An alternative to:
$var = 'abc';
echo $var[strlen($var) - 1];
Can be:
$var = 'abc';
echo $var[-1
On Fri 10 Feb 2012 09:49:54 GMT, Stefan Marr wrote:
Hi Marc:
On 09 Feb 2012, at 22:36, Marc Easen wrote:
The reason why I feel this should be changes to reflect the actual called
function name is that one of main uses of the __FUNCTION__ constant it to refer
back to the function that is
o()';
}
}
$instance = new MyClass();
$instance->countdown(3);
This example will produce running (PHP 5.4 RC7):
10
MyClass::foo()
Which as you can see is not the desired effect.
I send this email in the hope this can get the discussion under way
regarding the magic consta
Hello everyone,
I would like to open the discussion around the support of negative indexes, as
I feel a lot of developers will benefit from this syntactical sugar.
Example:
$foo = array(1,2,3);
echo $foo[2]; // 3
echo $foo[-1]; // 3
$bar = 'baz';
echo $foo[2]; // 'z'
echo $foo[-1]; // 'z'
The
Hello,
I have attached a patch to the following bug, but I believe the bug is
incorrect...
If is_subclass_of() is used in conjunction with a interface it should always
return false because it's not a class, it's an interface.
Test:
--
interface MyInterface {
const TEST_CONSTANT = true;
.
spl_autoload_case_sensitive.patch
Description: Binary data
Kind RegardsMarcOn 26 Dec 2010, at 13:20, Marc Easen wrote:Hello everyone,Firstly I would like to introduce myself, my name is Marc Easen and I've working with PHP for past 6 years or so. I'm really excited to see where PHP is going with the addition of name
Hello everyone,Firstly I would like to introduce myself, my name is Marc Easen and I've working with PHP for past 6 years or so. I'm really excited to see where PHP is going with the addition of namespaces and now traits, and hopefully I'm able to contribute back to PHP community
10 matches
Mail list logo