[PHP] self operator within a double quoted string

2013-04-17 Thread NaMarPi
I would like to use self and static operators inside a double quoted string, but do not find the way to accomplish that. Could you give me a right direction? http://3v4l.org/NDkdA class Foo {     public static $class_prop = 'Class_Property';     public $object_prop = 'Object_Property';    

[PHP] Re: self operator within a double quoted string

2013-04-17 Thread NaMarPi
, it will be appreciated. On Wed, Apr 17, 2013 at 7:47 PM, NaMarPi nama...@yahoo.com wrote: I would like to use self and static operators inside a double quoted string, but do not find the way to accomplish that. Could you give me a right direction? http://3v4l.org/NDkdA class Foo

[PHP] SPL Recursive Iterator Examples

2013-03-19 Thread NaMarPi
I have not found enough documents about Recursive Iterators on the net, so started to collect my mini-examples here: https://github.com/namarpi/PHP-SPL-Recursive-Examples -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SPL Recursive Iterator Examples

2013-03-19 Thread NaMarPi
The usage of the examples: 1. the name of the php file reflects to the method(s) under consideration - find the related php.net manual page for more information 2. scroll down in the file, and you will find the result of the execution - Original Message - From: NaMarPi nama

[PHP] Re: Re: SPL Recursive Iterator Examples

2013-03-19 Thread NaMarPi
Thanks, I have heard about that feature for the first time. I will examine it. Why don't you post them on php.net? http://www.php.net/manual/add-note.php?sect=class.recursiveiteratorredirect=http://www.php.net/manual/de/class.recursiveiterator.php NaMarPi nama...@yahoo.com hat am 19

[PHP] Traits - Is it stable to use get_class_methods on a trait?

2013-03-13 Thread NaMarPi
Hello All, there is a trait which sits in a class. I need the names of the trait methods, and get_class_methods does this job. I am happy with that, but is it safe/stable? Is there a better way to get trait method names? Thanks a lot. Working example (My_Class and My_Trait are in different

[PHP] SPL RecursiveArrayIterator::offset(Un)Set has no effect on instance created with ArrayObject

2013-03-11 Thread NaMarPi
Hello All, It seems to me that an instance of RecursiveIteratorIterator with ArrayObject has no effect when calling RecursiveArrayIterator::offsetUnset or RecursiveArrayIterator::offsetSet methods. But everything works fine when the iterator is created with a json_decoded - json_encoded