אני לא יודע מה הסתבכת....
הנה בשבילך הקוד שעובד :
PHP קוד:
$text = "this is my code and i want to replace all code words to something else";
$text = preg_replace('/code/','mytest',$text);
echo $text;
והתוצאה שקיבלתי כשהרצתי את הסקריפט :
ציטוט:
this is my mytest and i want to replace all mytest words to something else
|
עובד מצויין