Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

php session add values

Avatar of newbe101
newbe101 asked on
7 Comments1 Solution243 ViewsLast Modified:
Hi all,
I need to add all session variables that start with "opt".  ie.  opt22=>10.00 opt41=>20.00 total would be 30.00.  The "opt" variables will vary so I can't write it out by hand, I need some code that looks at all of the session variables and sums all variables that start with "opt".  I have no idea how this would be done, so I don't have any sample code.
Thanks in advance!
Avatar of Ionut A. Tudor
Ionut A. TudorFlag of Romania imagePHP Programmer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answers