Re: [PHP] ImageCreateTrueColor background always gets black and JPEG vs. PNG color difference

2002-10-29 Thread jla21
>From the gd manual at boutell.com: Truecolor images are always filled with black at creation time. There is no concept of a "background" color index. I suppose you'll have to use a function like imagefill to get your yellow background. -Josh On Tue, 29 Oct 2002, Wouter de Jong wrote: > Hi,

Re: [PHP] regular expressions question

2002-10-30 Thread jla21
If I understand you correctly, I think you want this? $matches = array(); $test = "(this)example"; preg_match("/\((.*)\)(.*)/", $test, $matches); array_shift($matches); On Wed, 30 Oct 2002, Simon Dedeyne wrote: > I have a little question. I'm having some difficulty with regular > expressions: >

Re: [PHP] regular expressions question

2002-10-30 Thread jla21
Whoops.. I missed one bit. Rasmus did it right. ;) On Wed, 30 Oct 2002 [EMAIL PROTECTED] wrote: > If I understand you correctly, I think you want this? > > $matches = array(); > $test = "(this)example"; > preg_match("/\((.*)\)(.*)/", $test, $matches); > array_shift($matches); > > On Wed, 30 Oc