Re: [PHP] Re: __toString & friends

2008-09-19 Thread Leurent Francois
t's the 3rd item in the Type of bug select). Btw, I liked this idea :) On Fri, Sep 19, 2008 at 8:58 AM, Leurent Francois <[EMAIL PROTECTED]>wrote: > Is there any feature submission process were we could discuss of this > subject ? > > > "Colin Guthrie" <

[PHP] Re: __toString & friends

2008-09-19 Thread Leurent Francois
Is there any feature submission process were we could discuss of this subject ? "Colin Guthrie" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Nathan Rixham wrote: >> concurred; I recently made a class that turn's all objects into XML; and >> implented it in my __toS

Re: [PHP] Class & Type Casting

2008-06-11 Thread Leurent Francois
> One could ask if it would just pass to > the constructor, but it doesn't. I don't know if there's a technical > reason > for that or if just no one implemented it, but the short answer is "The > language doesn't do that." That's what i was asking about, when trying to "cast" something into a n

[PHP] Class & Type Casting

2008-06-10 Thread Leurent Francois
I was asking myself if there was a good reason this syntax not to work class string_extented{ function __construct($str){ $this->contents=$str; } function __toString(){ return $this->contents; } } //that's working fine $test= new string_extended("this is my anonymous string"); echo $test; /tha

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Leurent Francois
I like the sess::reload() and sess::connect($user_login,$user_pswd); idea... > is there a reason why that would work better then: echo "Welcome > {$_SESSION['user_info']['user_name']}";? > > Just curious :) > > -- > > Jason Pruim > Raoset Inc. > Technology Manager > MQC Specialist > 3251 132nd

[PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Leurent Francois
Is there any hope that echo "Welcome {session::$user_info['user_name']}"; will work someday, if not, is there a simple reason i'm missing ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php