I've used the search option to find how to convert a string to a int.. none of the suggestions will work for what i am looking for:
ok so i have this problem say.. 2+(3-5)3/(7-6)
i know php has a function for the "power of" ^ - 'pow()' i'm creating something to convert ^ to pow() or use pow... please don't help with the whole problem.. all that i need help on, right now, is:
the problem to be solved starts a string otherwise i can't explode() ^
so now its : $pro_array[0] and $pro_array[1] what i want is the 3-5 solved and turned into an int, then take that value and turned back into a string which in the case "-2".. when i try to turn "3-5" into and int it comes up with "3":
I've used (int), i've used set type, and intval... none work, solutions?