I have an array, and I have this:
$title = "Envirometal Recycling : Scrap Metal Recyclers Caboolture - Scrap products Zinc";
I want to do this:
$title = "Envirometal Recycling : Scrap Metal Recyclers <?php echo $suburb[$rand_keys[0]] . "\n";?> - Scrap products Zinc";
Obviously the above is wrong, I aint sure how I should concantenate my code ( not sure if thats correct wording.
You can also use curly brackets like so:
Then you don’t have to have odd concatenating situations revolving around quotes and double quotes.
ie,
$string = "John said, '" . $verbiage . "'";I think it looks pretty clean as
$string = "John said, '{$verbiage}'";