strip () and get value

Posted by mandnd on Stack Overflow See other posts from Stack Overflow or by mandnd
Published on 2010-05-05T20:41:15Z Indexed on 2010/05/05 20:48 UTC
Read the original article Hit count: 154

Filed under:

I have a html list that looks like this:

  • animals (45)
  • houses (36)
  • computers (96)

I want to get all the values inside those () and make like $sum = 45+36+96;

How can I do that? Thanks

© Stack Overflow or respective owner

Related posts about php