Hello

I have a file data.txt containing some data in this format

house=10
car=12
pen=1
house=10
red table=2
tables=7
house=7
car=7
red table=3
house=3
pen=2
...

and so on. I need to sum the numeric values of each string to have this result

house=30 car=19 red table=5 tables=7 pen=3 ...

Which is the fast way to that using php please ?

Thank you
Graziano