hot to replace cirtain text from a string and replace with alternative text
can someone help me i want to show the browser being used and operating system used but i want to reformat, below is an example entry
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0
some text i will not need so can this uneeded text be stripped out , for example instead of the above code i want it to simply say,
Firefox Browser On Linux Operating System, 64 Bit.
instead of the above example shown..? if you can help please reply.
I have tagged this as php and mysql as the data i will be using will be from a mysql database and using php to render this information.