Question: here is some commands.

```
$filewithoutext = array("1F621", "1F536", "1F365", "1F33B", "1F193", "0035-20E3");
$changtofilename = str_replace($vowels, ".png", "1F536 1F621");

```

my requirement is if value find **(1F33B 1F193)** then system will change it to **.png** like **1F536.png 1F621.png**

Answer: 
Try this,

```
<?php
    $vowels = array("1C536", "1F621");
    $array = array("1F621", "1F536", "1F365", "1F33B", "1F193", "0035-20E3");
    foreach ($vowels as $key => $val) {
        if (in_array($val, $array)) {
            $key = array_search($val, $array);
            $array[$key] = $array[$key] . ".png";
        }
    }
    print_r($array);

```

See demo [here](https://eval.in/483761)
```
 $find = array('1F33B', '1F621');
    $replace = array('1F33B.png', '1F621.png');
    $filewithoutext = array("1F621", "1F536", "1F365", "1F33B", "1F193", "0035-20E3");
    $changtofilename = str_replace($find, $replace, $filewithoutext);

```