$search = array('s01', 's02', 's03', 's04');
$replace = array('e01', 'e02', 'e03', 'e04');
$subject = 's01';
echo str_replace($search, $replace, $subject);
Kaynak: https://stackoverflow.com/questions/13715826/str-replace-with-array
$search = array('s01', 's02', 's03', 's04');
$replace = array('e01', 'e02', 'e03', 'e04');
$subject = 's01';
echo str_replace($search, $replace, $subject);