I want to change the 'S' from the array into 'l'. but it won't work. Please help me with this one.
Here's my code:
<?php
$array = array (
"romeo/echo/julion/1991s/1992.jpg",
"romeo/echo/julion/1257s/1258.jpg",
"romeo/echo/julion/1996s/1965.jpg",
);
foreach($array as $key => $value){
if($key == "romeo/echo/julion/'.*?'s/'.*?'.jpg") $value="romeo/echo/julion/'.*?'l/'.*?'.jpg";
}
print_r($value);
?>
str_replacefunction.