PHP calulate 2 array values
Go to solution
Solved by C2dan88,
@Joveice What preg_match function are you using?
The array output shown by @mariushm is the result from preg_match_all
However the array output you have shown is the result from preg_match
If you are using preg_match_all then you need to do the multiplication on $matches[1][0] and $matches[2][0]

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now