RE: [PHP] "x" as a multiplier
| From: | John Meyer | Date: | Tue, 03 Dec 2002 22:59:06 +0000 |
| Subject: | RE: [PHP] "x" as a multiplier | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126905@lists.php.net to get a copy of this message | ||
Exactly. But it's only giving me one of the numbers without the space
between the numbers and the x.
-----Original Message-----
From: Adam Williams [mailto:awilliam@mdah.state.ms.us]
Sent: Tuesday, December 03, 2002 3:48 PM
To: Kevin Stone
Cc: John Meyer; php-general@lists.php.net
Subject: Re: [PHP] "x" as a multiplier
I don't think he's trying to multiply, I think he wants to print #x#, like
800x600 or 1024x768, etc...
Adam
On Tue, 3 Dec 2002, Kevin Stone wrote:
> Is it possible you're mistaken somehow? x isn't an operator in PHP.
> Executing $a x $b will give you a parse error. Anything in quotes is
> automatically casted as a string.
> -Kevin
>
> ----- Original Message -----
> From: "John Meyer" <johnmeyer_1978@yahoo.com>
> To: <php-general@lists.php.net>
> Sent: Tuesday, December 03, 2002 3:20 PM
> Subject: [PHP] "x" as a multiplier
>
>
> > Code:
> >
> > $newwidth . "x" . $newheight
> >
> >
> > What I want to get out is a string, like 89x115. All I am getting
though,
> > is one number, even though if I do this
> >
> > $newwidth . " x " . $newheight
> >
> > It prints out just fine. What is going on here?
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
>