Hi, is it possible to join strings? I'd like to prepend a number to a string prior to processing it to an int?
Thanks
Lee
Hello,
On 1/29/11 6:26 AM, Lee Archer wrote:
Hi, is it possible to join strings? I'd like toprepend a number to a string prior to processing it to an int?
using + with variables/values holding strings results in concatenation:
$var(x) = "123";
$var(y) = "abc" + $var(x);
Then the $var(y) will be "abc123";
Cheers, Daniel
Thanks for the help. I thought I had tried this way but I will try again.
Regards
Lee
________________________________
From: Daniel-Constantin Mierla [mailto:miconda@gmail.com] Sent: Sat 29/01/2011 17:16 To: Lee Archer Cc: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Joining strings
Hello,
On 1/29/11 6:26 AM, Lee Archer wrote:
Hi, is it possible to join strings? I'd like to prepend a number to a string prior to processing it to an int?
using + with variables/values holding strings results in concatenation:
$var(x) = "123";
$var(y) = "abc" + $var(x);
Then the $var(y) will be "abc123";
Cheers, Daniel