View Single Post
  #27  
Unread 02-10-2005, 07:58 PM
Eloa Eloa is offline
EQ2MAP Webmaster
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unkown
Posts: 496
Default

!!!!!!-----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?

Last edited by Eloa : 02-10-2005 at 08:15 PM.