Return to substr_replace_array.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / strings |
1.1 misho 1: --TEST-- 2: substr_replace() function - array 3: --FILE-- 4: <?php 5: 6: $arr = array('abc' => 'llsskdkk','def' => 'llsskjkkdd', 4 => 'hello', 42 => 'world'); 7: $newarr = substr_replace($arr, 'zzz', 0, -2); 8: 9: print_r($newarr); 10: 11: ?> 12: --EXPECTF-- 13: Array 14: ( 15: [abc] => zzzkk 16: [def] => zzzdd 17: [4] => zzzlo 18: [42] => zzzld 19: )