$tests[] = "http://www.123.com/folder/subfolder.php?u=".$var2;
$tests[] = "http://www.456.com?u=".$var2."&myimagelink&mydescription";
$tests[] = "http://www.some-other-site.com/okay/?u=".$var2."&myimagelink&mydescription";
Or even simpler,
$tests[] = "http://www.123.com/folder/subfolder.php?u=$var2";
$tests[] = "http://www.456.com?u=$var2&myimagelink&mydescription";
$tests[] = "http://www.some-other-site.com/okay/?u=$var2&myimagelink&mydescription";
1
solved php help – need to echo php using strings