I have a variable
$abc='akr:/9888/fk4f76mhn';
Another variable
$url = 'http://alpha.com/zidd/id/'.$abc;
Which is giving me
http://alpha.com/zidd/id/ akr:/9888/fk4f76mhn
A space is being introduced between id/ and akr:/9888/fk4f76mhn which I do not want.
Is there anything wrong I am doing here?
Well you should put quotes around your string literal
If you still get a space, you can use
trimto remove it: