PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have this string. When I var_dump() the string I get this:
string(10) "174"
but I need to use this string as an int in a math problem. I have tried many things but nothing has worked. Here is what I have tried and what it outputs to:
Edit: arg, stupid me. The regex I am using to get the number out as getting it from between a <M> tag and the tags were still there and thus when you cast <M>174</M> into an int it just says "no" and gives you 0. Blah. Thanks for the hex idea though, didn't think of that