Jump to content

[SOLVED] Pulling a key apart.


sprintlife

Recommended Posts

Hey programmers,

 

I wanna pull a code apart.  Here is the example.

123-765432-436436

 

I want to pull them apart and be like this

 

$number = '123'; // So basically pull the first set of code before the -
$number2 = '765432'; // So basically pull the second set of code after the first -
$number3 = '436436'; // So basically pull the third set of code after the second -

 

I need to do this to supply to the database.  Thank you!

Link to comment
https://forums.phpfreaks.com/topic/153969-solved-pulling-a-key-apart/
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.