Jump to content

[SOLVED] Need help @_@


kryppienation

Recommended Posts

I am wondering if there is a way that i can pick apart a value of a variable.

 

I am working with a mapping system and when the info is submitted it is in the form of a regular coordinate.

 

 

$location = "6-10"

 

I need to pick the individual numbers out of that variable, ending up with 2 new variables.

 

$newvariable1 = 6

$newvariable2 = 10

 

Does anyone know if it's possible to do this or not? The way that the numbers are generated into the database is in this fashion, but i need the numbers separated to do other stuff with them.

Link to comment
https://forums.phpfreaks.com/topic/130534-solved-need-help-_/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.