This is off topic but the word for is called a quote mark. ;-)
- Original Message -
From: Bastian Vogt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 04, 2002 2:55 AM
Subject: Re: [PHP] x as a multiplier
Hi,
try $newwidth. x .$newheight instead.
It's important
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
, 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
. Anything in quotes is
automatically casted as a string.
-Kevin
- Original Message -
From: John Meyer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 3:20 PM
Subject: [PHP] x as a multiplier
Code:
$newwidth . x . $newheight
What I want to get out
. Anything in quotes is
automatically casted as a string.
-Kevin
- Original Message -
From: John Meyer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 3:20 PM
Subject: [PHP] x as a multiplier
Code:
$newwidth . x . $newheight
What I want to get
At 23:20 03.12.2002, John Meyer said:
[snip]
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.
, December 03, 2002 3:59 PM
Subject: RE: [PHP] x as a multiplier
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:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 3:48 PM
To: Kevin Stone
Hi,
try $newwidth. x .$newheight instead.
It's important to put the spaces inside the - ...don't know the word
:-)
If it's still not working you could try
settype($newwidth, string);
settype($newheight, string);
echo $newwidth. x .$newheigt;
but I think, this is not necessary!
HTH,
8 matches
Mail list logo