!!!!!!-----EDIT JUST FIGURED THIS OUT-----!!!!!!
I got the neg/pos figured out, the problem im having is with the stripping. I looked up the strip function cause it wasn't working and found that
explode ( string separator, string string [, int limit] )
will work just fine and is less intense on resources.
so this is what I have:
Code:
function SplitLoc($thisloc){
echo "called";
list($LOC_x, $LOC_z, $LOC_y) = (explode(",",$thisloc));
echo $LOC_x;
}
It will echo the $LOC_x, but only within that function, the variable is NULL outside of it. I still dont quite grasp the way php handles variables, everything else is working sitewide though. But they also are not contained within functions, which is something I dont do. So any advice on this?