Re: [PHP] Storing and then printing ANSI escape sequences in (and then from) variables

2009-01-07 Thread Paul M Foster
On Wed, Jan 07, 2009 at 11:11:53PM +, Luke Slater wrote: > Hi, > > I'm storing ANSI escape sequences in an array, stored like this: > > $connections[$channel][2] = $info['colour']; > > $info['$colour'] would contain something like \033[33m > > Now, my problem is when I try and print it: > > $p

[PHP] Storing and then printing ANSI escape sequences in (and then from) variables

2009-01-07 Thread Luke Slater
Hi, I'm storing ANSI escape sequences in an array, stored like this: $connections[$channel][2] = $info['colour']; $info['$colour'] would contain something like \033[33m Now, my problem is when I try and print it: $pstring = $connections[$channel][2] . $connections[$channel][1] . " " . $buffe