I would like to write the following code in php if possible. Have tried for hours how I can solve this exactly.
local code = \'\'; for word in string.gmatch(text