forumnz Posted May 8, 2009 Share Posted May 8, 2009 I have a string "Hello 123 World 456" (example). Is there a function I can use to add speech marks "" outside numbers, so that same line would read: "Hello "123" World "456"". Thanks Link to comment https://forums.phpfreaks.com/topic/157322-solved-is-there-a-way-to-add-marks-outside-a-number/ Share on other sites More sharing options...
Ken2k7 Posted May 8, 2009 Share Posted May 8, 2009 You can use preg_replace Link to comment https://forums.phpfreaks.com/topic/157322-solved-is-there-a-way-to-add-marks-outside-a-number/#findComment-829202 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.