Menu
Was wondering if you can preg_replace an unserialized string. My website serialized user input forms and I need to unserialize them. That’s no problem, but I need to replace part of the unserialized string. For example….unserializing may come out as this in a loop.
First Name: John
Last Name: Doe
E-mail: [email][email protected]
Telephone Number: 123-456-7890
If I needed to have the Telephone Number just come out as 123-456-7890, how would I remove the “Telephone Number: ” part of the string? Is it possible?