In a session context with a lot of session vars, you can use magic methods
__set and __get :
class s{
private function __set($property, $value){
$_SESSION[$property] = $value ;
}
private function __get($property){
return $_SESSION[$property
When I have many calls to $_SESSION I do:
$s = &$_SESSION;
$s['foo'] = 'bar';
echo $s['foo']; //bar
-Original Message-
From: Haluk Karamete [mailto:halukkaram...@gmail.com]
Sent: sexta-feira, 13 de Janeiro de 2012 01:17
To: php-general@lists.php.net
Subject: [PHP] advise on simplfying
On Thu, Jan 12, 2012 at 8:52 PM, tamouse mailing lists
wrote:
> On Thu, Jan 12, 2012 at 8:45 PM, Haluk Karamete
> wrote:
>> I agree... that was just a wild idea! :)
>> Let's forget about it!
>>
>> What's a good PHP programming editor you'd recommend on a mac for starters?
>
> (Remember to bottom
On Thu, Jan 12, 2012 at 8:45 PM, Haluk Karamete wrote:
> I agree... that was just a wild idea! :)
> Let's forget about it!
>
> What's a good PHP programming editor you'd recommend on a mac for starters?
(Remember to bottom post.)
My favourite on the Mac is TextMate, but it's not $free. (It's als
I agree... that was just a wild idea! :)
Let's forget about it!
What's a good PHP programming editor you'd recommend on a mac for starters?
On Thu, Jan 12, 2012 at 6:39 PM, tamouse mailing lists
wrote:
> On Thu, Jan 12, 2012 at 7:16 PM, Haluk Karamete
> wrote:
>> Again, coming from ASP back
On Thu, Jan 12, 2012 at 7:16 PM, Haluk Karamete wrote:
> Again, coming from ASP background, I'm trying to minimize the typing
> for most needed functionalities..
>
> in asp, to set a session var, you go <%session("age")=90%> and to
> output it, you just go <%=session("age")%>
>
> in php, you've go
6 matches
Mail list logo