[SR-Users] Joining strings

Lee Archer Lee.Archer at thebigword.com
Sat Jan 29 19:32:31 CET 2011


Thanks for the help.  I thought I had tried this way but I will try again.
 
Regards
 
Lee

________________________________

From: Daniel-Constantin Mierla [mailto:miconda at gmail.com]
Sent: Sat 29/01/2011 17:16
To: Lee Archer
Cc: sr-users at 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

-- 
Daniel-Constantin Mierla
http://www.asipto.com <http://www.asipto.com/> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110129/3df0ba66/attachment-0001.htm>


More information about the sr-users mailing list