Re: This is why I hate PHP
V <[email protected]> Sat, 1 Apr 2023 01:23:54 -0700 (PDT)
| Newsgroups | alt.comp.lang.php |
|---|---|
| Message-ID | <[email protected]> |
You seen this: https://youtu.be/IPXIgEAGe4U ? On Sunday, September 9, 2012 at 12:08:11=E2=80=AFAM UTC+2, Jonathan N. Litt= le wrote: > Bint wrote:=20 > > I don't know man, I didn't change anything else. If I pass $F['mapx'] a= s an=20 > > argument to imagecopyresized, even if I've explicitly set it to type=20 > > integer, it does not seem to get the value. I had to use an intermediat= e=20 > > variable to get it to work. You say it must be something else, but if t= hat=20 > > is the only thing I changed what else could it be? > What happens when you use intval() instead where it doesn't change=20 > $F['mapx'] but just the return value of the function:=20 >=20 > $myBool =3D imagecopyresized( $tim, $im, 0, 0, intval$F['mapx']),=20 > intval($F['mapy']), 256, 192, $Fwidth, $Fheight); > --=20 > Take care,=20 >=20 > Jonathan=20 > -------------------=20 > LITTLE WORKS STUDIO=20 > http://www.LittleWorksStudio.com