Hi all basically I want to take a value from an array, modify it and then insert it as a new variable in the array. I kind of imagine it looking like follows but as I have never really worked with arrays I have no idea.
<?php
$foobar = array(
"foo" => "foo1",
"bar" => "bar1",
)
$New_variable = "<img src="$foobar["foo"])">";
$foobar[foo_img] = $New_variable;
print_r $foobar;
?>
Hope that makes sense and thankyou in advance.