Re: concatentation problems ...
| From: | Alexander Wagner | Date: | Thu, 19 Jul 2001 20:09:25 +0000 |
| Subject: | Re: concatentation problems ... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58785@lists.php.net to get a copy of this message | ||
Kenn Murrah wrote:
> I need to concatenate several variables, some of which are text and
> some of which are integers ... e.g.
>
> $desired_string = $number . $text . $number2 . $text
>
> always seems to truncate after first number ...
Strange.
If that's really the case, you might try to type-cast the numbers to
strings by placing (string) in front of them.
$desired_string = (string)$number . $text . (string)$number2 . $text
regards
Wagner
--
Madness takes its toll. Please have exact change.